Create a PayPal button

CDTom
New Community Member

I already have a paypal button on one of my websites. However the button only has one amount and that button works great. What I have now is a website that the user picks what they want and the website shows them what the amount due is.  How do I pass that amount due to the paypal button. Thanks for any help

Login to Me Too
1 REPLY 1

Gabriel_PP
Moderator
Moderator

Hi @CDTom 

Thanks for using our Commnity Forum,

I see.

In this case, you need to create a dynamic button, let's say an HTML button and then you can pass (using your preferred programming language) the value of the desired amount to our "amount" variable.

 

Example codes:

https://developer.paypal.com/docs/paypal-payments-standard/integration-guide/html-example-buy-now/

 

That's the HTML "fixed" code, but you can have the "amount" variable to be dynamic variable. However, the desing of this model/integration code will be up to you, since we are not able to provide customized code, apologies.

 

I hope this helps,

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.