How to add multiple Paypal Smart Buttons on a single page?

Casanda
Contributor
Contributor

Hello everyone,
I am not experienced with writing codes, so it's a bit difficult to understand SDK and other scripts. Anyway, I am trying to add multiple smart buttons to a page on my website, but every time I copy the code directly from Paypal and paste it into a separate container in WordPress HTML, only one button appears. This is driving me crazy since I am really trying to complete this page asap.
Kindly check the picture to understand what I am talking about.

Casanda_0-1698918112286.png

Each container has a specific code that I copied directly from PayPal.

Kindly teach me how to solve this issue, thank you, everyone!

Login to Me Too
2 REPLIES 2

Casanda
Contributor
Contributor

Kavyar
Moderator
Moderator

Good day @Casanda,

 

Thank you for posting to the PayPal community.

 

Please follow the below steps to create multiple PayPal Smart buttons. 

 

Login PayPal.com >> Hover on your name at the top right corner >> go to "Account settings" >> Website payments >> PayPal buttons >> select button type >> fill required details >> use the script code on your website.

 

(Or)

 

Login PayPal.com >> go to direct link " https://www.paypal.com/buttons/" >> follow the above steps.

 

Once you have created multiple smart buttons, in order to show/display all buttons, please initialize the script code only once in your website code. 

 

<script src=" https://www.paypal.com/sdk/js?client-id=************&amp;vault=true" data-sdk-integration-source="button-factory" type="text/javascript"></script>

 

I request you to please contact your website developer or third party platform eCommerce to update/modify your website code and initialize the above script code only once, so that all the smart buttons will be displayed/shown. 

 

Thank you so much for your patience and understanding.

 

If your still facing issues, please create an MTS ticket via - https://www.paypal-support.com/s/?language=en_US  with the detailed information and error details.

 

Sincerely,

Kavya

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

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.