dongtang6681 2019-03-18 12:50
浏览 42
已采纳

php核心paypal sdk

i integrate paypal sdks in php but as i excute payment sdks keeps giving me this error

Fatal error: Uncaught exception 'PayPal\Exception\PayPalConnectionException' with message 'error setting certificate verify locations: CAfile: C:\xampp\php\extras\ssl\cacert.pem CApath: none' in C:\xampp\htdocs\PaypalPayments\vendor\paypalest-api-sdk-php\lib\PayPal\Core\PayPalHttpConnection.php:186 Stack trace: #0 C:\xampp\htdocs\PaypalPayments\vendor\paypalest-api-sdk-php\lib\PayPal\Auth\OAuthTokenCredential.php(252): PayPal\Core\PayPalHttpConnection->execute('grant_type=clie...') #1 C:\xampp\htdocs\PaypalPayments\vendor\paypalest-api-sdk-php\lib\PayPal\Auth\OAuthTokenCredential.php(280): PayPal\Auth\OAuthTokenCredential->getToken(Array, 'AZbU2vAMzPlnWKj...', 'EL2UKmfG-7Rl4QC...', 'grant_type=clie...') #2 C:\xampp\htdocs\PaypalPayments\vendor\paypalest-api-sdk-php\lib\PayPal\Auth\OAuthTokenCredential.php(216): PayPal\Auth\OAuthTokenCredential->generateAccessToken(Array, NULL) #3 C:\xampp\htdocs\PaypalPayments\vendor\paypalest-api-sdk-php\lib\PayPal\Auth\OAuthTokenCredential.php(166): PayPal\Auth\OAuthTokenC in C:\xampp\htdocs\PaypalPayments\vendor\paypalest-api-sdk-php\lib\PayPal\Core\PayPalHttpConnection.php on line 186

  • 写回答

1条回答 默认 最新

  • douhuang5331 2019-03-21 12:48
    关注

    I also faced the same issue when I integrated Paypal SDK in PHP. I think you execute your code at localhost.

    Just push your code to a live server and it will work like a charm.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?