Category: Computer Ramblings

Added: 28th of December 2020

Viewed: 720 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 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 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 information superhighway. Getting online in the early days of the internet

Posted: 18th of August 2021

Views: 435

Computer Ramblings

HP Envy 5320 will not print in Colour on Windows 10

Posted: 5th of June 2021

Views: 406

Computer Ramblings

Block websites using the Sky Broadband Shield

Posted: 8th of May 2021

Views: 488

Computer Ramblings

ICY BOX IB-173SSK Mobile Rack for 2.5

Posted: 1st of April 2021

Views: 534

Computer Ramblings

SKYQ apps versus FreeSat apps for YouTube and other services

Posted: 27th of March 2021

Views: 472

Computer Ramblings

HP Deskjet D1560 printer, old printers

Posted: 4th of January 2021

Views: 715

Computer Ramblings

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

Posted: 28th of December 2020

Views: 720

Computer Ramblings

Sell or re-purpose your old computer cables and components

Posted: 3rd of September 2020

Views: 730

Computer Ramblings

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

Posted: 31st of August 2020

Views: 966

Computer Ramblings

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

Posted: 28th of April 2020

Views: 857