PayPal pay option integration

tibork
Contributor
Contributor

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!

Login to Me Too
3 REPLIES 3

tibork
Contributor
Contributor

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.

Login to Me Too

MTS_John
Moderator
Moderator

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.

 

 

 

 

 

 

Login to Me Too

tibork
Contributor
Contributor

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!

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.