Code methods for Create Order call depending on Paypal Buttons vs Conventional Credit Cards
creativearc
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Sep-25-2023
12:51 PM
Hi!
I inherited some PayPal Advanced code that works for both PayPal Button and Conventional credit card orders.
But then I realized, my app was sending a grand total order value to PayPal, and doesn't itemize tax_total, shipping, etc.
We were able to modify our code such that it itemizes the tax_total for PayPal button orders. Sample code attached.
I'm hoping to do the same for conventional credit card orders (that is, when customers use their card # instead of the PayPal buttons).
I'm content to look through the docs, but I don't know what to search for. Does PayPal Advanced Checkout have examples for both checkout routes?
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
- How do you dynamically pass an item name through an 'add to cart' button? in Sandbox Environment
- how to open the paypal payment dialogue with a custom button? in PayPal Payments Standard
- Subscription and Smart Buttons on Same Page - Need to load different SDKs in SDKs
- Credit Card Button: redirecting to Paypal depending on SDK "locale" in PayPal Payments Standard