This code will solve your problem and answer your question: how to add PayPal and credit card on checkout?
You can use this code on your PHP shopping cart script. This is an add-on to our shopping cart scripts like this as well.
PayPal Integration In PHP – Output Preview
You can watch the demo video below to see how the source code works.
If you still need a live demo after watching our demo video above, send and email request to firstname.lastname@example.org with a subject “DEMO: PayPal Integration in PHP”.
Live demo is in sandbox (testing) mode, so please use your PayPal sandbox account. You can create a PayPal sandbox account using this PayPal developer link.
How To Set Up / Enable Auto Return?
With Auto Return for PayPal Website Payments, your buyers are redirected back to your site immediately after clicking the Pay button on the Payment Confirmation page.
Your buyers enjoy a streamlined checkout experience and are returned back to your site quickly!
Enable Auto Return In Your Test / Sandbox Account.
- Log into https://developer.paypal.com
- Click Applications
- Click Sandbox accounts
- Expand the account in question
- Click Sandbox site
- Login to the test account
- Copy and paste “https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_profile-website-payments” into your browser
- Enable Auto Return and click Save
- Enter the Auto Return URL and click Save
Setting Up Auto Return On Your Official / Real PayPal Account
- Log in and click the Profile subtab under My Account.
- Click the Website Payment Preferences link under Selling Preferences.
- Click the On radio button to enable Auto Return.
- Enter the Return URL. Note: You must meet the Return URL requirements in order to set up Auto Return. Learn more about Return URL.
Download Source Code
It is more convenient if you can just download the complete source code we used and play around with it. There’s a small fee in getting the complete source code, it is small compared to the:
|✔ Value or skill upgrade it can bring you, or||YES|
|✔ Income you can get from your website project or business.||YES|
|✔ Precious time you save.||YES|
|✔ Expert advice you can get from us, just in case you have any questions related to the source code.||YES|
For a limited time, I will give you the source code for a low price. DOWNLOAD THE SOURCE CODE you desire by clicking its the BUY button below.
You can see the features list and download it below.
|Pay with PayPal||YES|
|Pay with credit card (via PayPal)||YES|
|Pay with debit card (via PayPal)||YES|
|Set merchant email address / PayPal ID||YES|
|Set currency and currency symbol||YES|
|Set return URL (your site URL when user was done with the payment)||YES|
|Set cancel URL (your site URL when user cancels order)||YES|
|Support automatic redirect to your site||YES|
|Free support for 6 months||YES|
Related Source Code Modules
You can download the PHP SHOPPING CART SYSTEM by modules. Learn more by clicking any 'View Module' button below.
|PHP Users & Login System|
|PHP Product Catalog|
|PHP Shopping Cart & Ordering|
|PHP Web Page Content Management|
|PHP Contact Form & Messages|
|PHP & PayPal Integration|
You can download the different modules right now by checking multiple check-boxes and clicking the "Download Now" button below.
Thanks for viewing our source code about PayPal Integration In PHP!
If you have any questions, comments or suggestions, please do not hesitate to contact me.
a. Send me an email. My email address is email@example.com
b. Go to https://fb.com/codeofaninja and chat me up.