Category : paypal-sandbox

I am doing e-commerce on shopify.And I finished mine website.And trying add payment methods.Finally I intergrated Paypal express check-out on shopify. And I wanna test paypal its working correctly. And I create sandbox account.I can login smoothly www.sandbox.paypal.com but when I am trying test buy on my website paypal login says "Check your email adress ..

Read more

The question is about paypal API v2 and curl request, I’m getting "error":"invalid_client","error_description":"Client Authentication failed" (tested with cCurl and PHP, both same invalid_client error) I’m using the documentation https://developer.paypal.com/docs/api/orders/v2#orders_get and https://developer.paypal.com/docs/checkout/reference/server-integration/get-transaction/ curl -v -X GET https://api.sandbox.paypal.com/v2/checkout/orders/___orderID___ -H "Content-Type: application/json" -H "Authorization: Basic __id__:__secret__" I’m still in sandbox phase. I have the feeling I miss a ..

Read more

I’m making an ecommerce website, which sells only digital things (no shipping). So I tried to set the "shipping_preferences" key to "NO_SHIPPING" inside the request creation, but it doesn’t seem to work (it doesn’t give any error). I’m following the documentation here. PHP code (buildRequestBody): function buildRequestBody() { return array( ‘intent’ => ‘CAPTURE’, ‘purchase_units’ => ..

Read more

I am trying to figure out how to get the client token with the new Paypal integration. I am using php code like this to <?php header(‘Content-Type: application/json’); $ch = curl_init(); $clientId = "MY_ID"; $secret = "SECRET_ID"; curl_setopt($ch, CURLOPT_URL, "https://api.sandbox.paypal.com/v1/oauth2/token"); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, $clientId.":".$secret); ..

Read more

I am trying to figure out how to get the client token with the new Paypal integration. I am using php code like this to $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, ‘https://api.sandbox.paypal.com/v1/identity/generate-token’); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); $token = $json->access_token; $headers = array(); $headers[] = ‘Content-Type: application/json’; $headers[] = ‘Authorization: Bearer ‘.$token; $headers[] = ‘Accept-Language: ..

Read more