Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- Make sure to replace ENTER_MERCHANT_CLIENT_ID_HERE
- with your merchant account's client ID. You should
- use a Sandbox client ID for development and testing,
- and a production client ID for your live site.
- -->
- <script
- src="https://www.paypal.com/sdk/js?client-id=AXwuMbJfr5JF4wA-g0Q8CH8fYwa3b-VI5HGd_xw38tSN5kSW4BwQN41Gn-XnZf6GJiKFvwmgW1L43MMK&components=messages"
- data-namespace="PayPalSDK">
- </script>
- <!-- In your code, dynamically update
- data-pp-amount with the price or cart amount.
- For example, data-pp-amount=“89.99”
- for $89.99 product
- -->
- <div
- data-pp-message
- data-pp-style-layout="text"
- data-pp-style-logo-type="inline"
- data-pp-style-text-color="black"
- data-pp-amount="{{ cart.total_price | money_without_currency | remove: "," | divide_by: 100 }}">
- </div>
- <div
- data-pp-message
- data-pp-style-layout="text"
- data-pp-style-logo-type="inline"
- data-pp-style-text-color="black"
- data-pp-amount="{{ cart.total_price | money_without_currency | remove: "," | divide_by: 100 }}">
- </div>
- {{ cart.total_price | money_without_currency | remove: "," | divide_by: 100 }}
- {{ variant.price | money_without_currency | remove: "," | divide_by: 100 }}
Advertisement
Add Comment
Please, Sign In to add comment