Re: Smart Payment Button - Variable amount

eqm_dev
New Community Member

I am also trying to integrate the smart payment buttons into a checkout flow where the final payment amount can be variable. I can't declare the payment amount in actions.order.create because at the time the buttons are rendered, I don't know the final amount yet. I followed the same set up as the Basic Integration Guide and searched extensively for a solution to this issue. This thread is the only mention I could find of the issue.

 

Basically, my integration is a seminar registration form where the registration and payment all happens on the same page. A user enters how many people will be attending and what age range they are. Based on this info, the final amount is determined. Currently, the Smart Payment Buttons are rendered on the load of this page since that is what is indicated in the basic integration guide. I don't want to have the registration form on one page and then make them click a button to get to a "checkout" page just so I can load the final amount into the actions.order.create call. That seems like bad design. Is there any way to render the buttons without giving them an amount and then dynamically update that amount at a later time after the user has interacted with the page?

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.