Code methods for Create Order call depending on Paypal Buttons vs Conventional Credit Cards

creativearc
Contributor
Contributor

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.

 

ppb (1).png

 

 

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?

 

 

Login to Me Too
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.