ovipreneur

Untitled

Mar 22nd, 2021
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <!--
  2. Make sure to replace ENTER_MERCHANT_CLIENT_ID_HERE
  3. with your merchant account's client ID. You should
  4. use a Sandbox client ID for development and testing,
  5. and a production client ID for your live site.
  6. -->
  7. <script
  8. src="https://www.paypal.com/sdk/js?client-id=AXwuMbJfr5JF4wA-g0Q8CH8fYwa3b-VI5HGd_xw38tSN5kSW4BwQN41Gn-XnZf6GJiKFvwmgW1L43MMK&components=messages"
  9. data-namespace="PayPalSDK">
  10. </script>
  11.  
  12. <!-- In your code, dynamically update
  13. data-pp-amount with the price or cart amount.
  14. For example, data-pp-amount=“89.99”
  15. for $89.99 product
  16. -->
  17. <div
  18. data-pp-message
  19. data-pp-style-layout="text"
  20. data-pp-style-logo-type="inline"
  21. data-pp-style-text-color="black"
  22. data-pp-amount="{{ cart.total_price | money_without_currency | remove: "," | divide_by: 100 }}">
  23. </div>
  24.  
  25.  
  26. <div
  27. data-pp-message
  28. data-pp-style-layout="text"
  29. data-pp-style-logo-type="inline"
  30. data-pp-style-text-color="black"
  31. data-pp-amount="{{ cart.total_price | money_without_currency | remove: "," | divide_by: 100 }}">
  32. </div>
  33.  
  34.  
  35. {{ cart.total_price | money_without_currency | remove: "," | divide_by: 100 }}
  36.  
  37. {{ variant.price | money_without_currency | remove: "," | divide_by: 100 }}
  38.  
  39.  
  40.  
  41.  
Advertisement
Add Comment
Please, Sign In to add comment