2020-12-08 18:29

PHP-SDK-1.8.0 samples/CreatePayment.php gets error "Could not generate new Access token", worked in 1.7.4

Required Information

  • PHP Version:5.3.20
  • PayPal-PHP-SDK Version:1.8.0
  • Debug ID(s):

Issue Description

In PHP-SDK-1.8.0 samples/CreatePayment.php fails with message "Could not generate new Access token"; I am using my own bootstrap credentials.

It worked fine in PHP-SDK-1.7.4

Reproduce by:

Modify samples/CreatePayment.php to point to my own bootstrap file. I have been using this bootstrap file successfully throughout the last several releases. It is just like the samples bootstrap.php file except I have put in my own credentials.

go to http://yourhost.com/yourplace/PayPal-PHP-SDK/paypal/rest-api-sdk-php/sample/ Where it says "Payments using credit card information" click "Try It"

When using PayPal-PHP-SDK-1.7.4 it works! When using PayPal-PHP-SDK-1.8.0 it fails and outputs the message Response Object

Could not generate new Access token. Invalid response from server: No Data

Additional information. I keep going back and forth between 1.7.4 and 1.8.0 this morning, so it does not appear to be a problem with PayPal servers.

This is happening in the sandbox.

Is anyone else having this problem?


  • 点赞
  • 回答
  • 收藏
  • 复制链接分享