Category: Computer Ramblings

Added: 28th of December 2020

Viewed: 484 times

PayPal smart buttons. Create a Pay Now button for your website

I have not created a standard Buy Now button on PayPal for some time. One thing I noticed was a new feature called Smart Payment Buttons which I have started to look in to. For those who are a little confused with the process, please read on. At the end of this tutorial you should be able to create a Pay Now button for your own website.

Creating a Smart Payment Button
The first thing you need to do is head over to the Pay Pal developer website https://developer.paypal.com/home and login to the dashboard.

If you already have a PayPal business account you just need to login with your existing PayPal login details, You will be redirected back to the developer dashboard on the PayPal developer site.

In order to create smart payment buttons, you need to create create an app. Creating a new app will generate a client_id. The client_id is then used in the smart payment buttons code.

Please Note: If you create a smart payment button without logging in or creating an app, it will redirect the user to the PayPal sandbox after the user clicks the PayPal button.

Inside the developer account, select My Apps & Credentials, then select the live tab and click Create App



Enter a new App Name and click the Create App button



A new client_id will be generated for you



Next visit the following url https://www.paypal.com/buttons/ and select Smart Buttons



Under button details, select fixed price, and enter your product details. Once you have completed your product details, click the Copy code button.




Next create a new file on your desktop named paypal_button_live.html, open the file and paste the code in to it, remembering to save the file.

If you look in your code, you will see the client_id, which was automatically generated when you created the app on the PayPal developer website.




Next upload the file to your webspace, or test the file locally in your webbrowser. Your PayPal button has now been created.






Other Tips & Tutorials

Computer Ramblings

The portable PC project. My PC in a flight case

Posted: 27th of July 2021

Views: 56

Computer Ramblings

HP Envy 5320 will not print in Colour on Windows 10

Posted: 5th of June 2021

Views: 169

Computer Ramblings

Block websites using the Sky Broadband Shield

Posted: 8th of May 2021

Views: 252

Computer Ramblings

ICY BOX IB-173SSK Mobile Rack for 2.5

Posted: 1st of April 2021

Views: 329

Computer Ramblings

SKYQ apps versus FreeSat apps for YouTube and other services

Posted: 27th of March 2021

Views: 290

Computer Ramblings

HP Deskjet D1560 printer, old printers

Posted: 4th of January 2021

Views: 461

Computer Ramblings

PayPal smart buttons. Create a Pay Now button for your website

Posted: 28th of December 2020

Views: 484

Computer Ramblings

Sell or re-purpose your old computer cables and components

Posted: 3rd of September 2020

Views: 518

Computer Ramblings

Making the switch from Windows to Linux, here are some things to think about

Posted: 31st of August 2020

Views: 726

Computer Ramblings

Websites that prompt users to turn off their ad blocker, or block website content

Posted: 28th of April 2020

Views: 695