how to integrate Paypal Express checkout using new method? -


i want integrate paypal express checkout in project. think paypal has upgraded apis , methods. downloaded rest api github not able figure out how integrate it. confused. because in rest zip downloaded there many files , not able understand how can integrate express checkout new api , method. have gone through many of sites examples execute them error 10001. please help.

i not sure, whether still need this, should read document:

paypal docu

when using rest api, don't have download anything! how works is: have have developer account, create 1 here: dev account

there should client_id , secret.

then have connect url

https://api.sandbox.paypal.com/v1/oauth2/token 

with http headers:

"accept": "application/json", "accept-language":"en_us" 

with auth set to

your_client_id:your_secret 

replace values above client_id , secret got docu.

and parameters (params):

"grant_type":"client_credentials" 

the example of given in docus using curl:

curl -v https://api.sandbox.paypal.com/v1/oauth2/token \   -h "accept: application/json" \   -h "accept-language: en_us" \   -u "eoj2s-z6oon_le_ks1d75wsz6y0sfdvsy9183ivxfyzp:eclusmeuk8e9ihi7zdvlf5cz6y0sfdvsy9183ivxfyzp" \   -d "grant_type=client_credentials" 

( note how changed client_id , secret! )

ofc can in nodejs or php etc.!

the response json-object, need response.content.access_token !

this used later access other apis.

for further steps, check out docu , check out request generator:

request generator


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -