Paypal PHP SDK Credications and Authentication, I can't get it to work -


i using official php paypal sdk here: https://github.com/paypal/rest-api-sdk-php

i'm confused how authentication works. real paypal account gives me: username, password, signature. paypal dev account gives me: clientid , secret. sandbox business user gives me username, password, , signature.

the docs can authenticate follows:

$cred = new ppcertificatecredential("username", "password", "path-to-pem-file"); $cred->setthirdpartyauthorization(new pptokenauthorization("accesstoken", "tokensecret")); $response = $paypalservice->setexpresscheckout($setecreq, $cred); 

what values use here sandbox authenticate sand box? values use when switch on live? config file, says can that.

please help, i'm confused.

you can rest credentials within developer account. once logged developer account, click on "applications" tab, click on "rest api credentils link. here see client id , secret. there instructions on page obtaining live credentials well.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -