Client-side REST questions from beginner

snicke
Contributor
Contributor

I am a beginner with paypal and trying to understand the client side rest api. I am no js expert but the code at https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/client-side-R... does not look too difficult. Is that what it takes?

I am asking because I can not find any tutorials about client side only rest api. And also found this doc that seems to describe the same thing but it looks much more complicated when you also have to deal with oauth:
https://github.com/paypal/paypal-checkout/blob/master/docs/paypal-rest-api.md

Login to Me Too
3 REPLIES 3

MTS_Ciaran
Moderator
Moderator

Hey,

 

Yep, so client side is actually pretty straight forward to be honest. You just need to create your app, copy in your client ID in to the JS, set the right environment and paste the code into your site: you can demo it all here:

https://developer.paypal.com/demo/checkout/#/pattern/client

 

 

Login to Me Too

snicke
Contributor
Contributor

It does look straightforward. I guess the second link in my post is not 'express'.

Are there security concerns since it is client side?

Login to Me Too

MTS_Ciaran
Moderator
Moderator

Hey,

 

Yep, so client side is actually pretty straight forward to be honest. You just need to create your app, copy in your client ID in to the JS, set the right environment and paste the code into your site: you can demo it all here:

https://developer.paypal.com/demo/checkout/#/pattern/client

 

 

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.