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
- PAYER_ACTION_REQUIRED returned for Capture intent when calling v2 checkout orders in Sandbox Environment
- Getting an error when trying to create an order. in REST APIs
- Payment not automatically being captured, funds not transferred in Sandbox Environment
- Checkout page language issue in REST APIs
- How do i pass a customer ID number in the transaction in Sandbox Environment