How to create an order and form purchase_units with breakups for the Amount-Javascript SDK
Shaifal
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Oct-06-2020
05:34 AM
How to create an order and form purchase_units with breakups for the Amount using Javascript SDK. The breakups are not showing in the Paypal.
In the old Paypal integration, the amount will be calculated by paypal, but in the new Javascript SDK upgrade the discount, tax are not considering and not showing the mini cart with breakups in the paypal.
Example JSON
{"amount":{"currency_type":"USD","value":"210.49"},"breakdown":{"item_total":"189.99","tax_total":"20.50"}}
In the above example the "item_total" and "tax_total" are not showing in the PayPal. Its showing only "210.49".
Labels:
- Labels:
-
Mobile SDKs
-
PayPal Here SDK
-
REST SDK
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Are there any restrictions to charge using only html, vanilla javascript and php with rest api? in REST APIs
- permission_denied response in call to patch order when paying by Card in Braintree Client-side Integration (JS, iOS, Android SDKs)
- Compliance violation. flag based on the account origin ? in Sandbox Environment
- Sandbox isnt working in REST APIs
- PayPal integration with Next, Lambda and API Gateway - 400 Invalid Request in Sandbox Environment