PayPal pay option integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
We are starting an online store for our website, the store page is all setup with test items and we have a working shopping cart, we would like PayPal integrated to have the option for the customers to pay the total with PayPal. I read all documentations I could on this but they all only offer setting up an entire shopping cart system or just pay for a single item with a set price. How can we integrate PayPal so customers can pay the total already shown in their shopping cart? Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Additional information: the shopping cart is a custom built JS script so PayPal would basically need to pickup the 'cart_total' value from here and handle the payment. Should be an easy solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @tibork,
Thank you for posting to the PayPal Merchant Community.
There are 2 solutions that could work well for your website depending on how you want to use your custom built JS shopping cart. The most direct solution might be to use the PayPal JS SDK if your cart is compatible with it [https://developer.paypal.com/sdk/js/]. An even more fexible solution is to make calls directly to the PayPal REST API [https://developer.paypal.com/api/rest/]. Once you have your shopping cart connected to PayPal you can use our sandbox environment to test it and make sure everything works before going live [https://developer.paypal.com/tools/sandbox/].
If you have any additional questions please feel free to comment here and be sure to 'at' me so I receive a notification or file a ticket at www.paypal.com/mts.
Sincerely,
John
MTS
PayPal
If you found this post helpful, please give it a kudos or accept it as a solution so it can help others with a similar question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MTS_John
Thanks for the response and suggestion, I decided to go with the REST API just in case, created the REST API app/account, got a client ID and secret ID, but not clear where the cURL code goes from here to get access code. Thank you!

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs
- p is not a function error using the example downloaded from Paypal in SDKs
- How to enable on-demand / recurring payments to existing PayPal checkout? in SDKs
- iDEAL payments being refunded back to customers in PayPal Payments Standard
- How do you create subscriptions with PayPal Advanced Checkout? in SDKs