Paypal API与laravel存在集成问题

时间:2019-04-18 08:02:02

标签: laravel paypal-sandbox

我正在将Paypal网关与Laravel集成在一起。单击“与贝宝连接”按钮时出现问题

该应用已发送到Paypal链接,并显示错误

  

无效的client_id,返回uri

不知道它是密码问题还是Paypal中的帐户设置问题。

我已经多次更改了贝宝帐户中的返回URL,但没有用。

这是我的配置文件:

return array(

    'sandbox_client_id' => 'client_id_here',
    'sandbox_secret' => 'secret_here',

    'live_client_id' => env('PAYPAL_LIVE_CLIENT_ID'),
    'live_secret' => env('PAYPAL_LIVE_SECRET'),

    'paypal_invoice_link'=>'https://www.paypal.com/invoice/payerView/details/',


    /**
     * SDK configuration settings
     */
    'settings' => array(
        /** 
         * Payment Mode
         *
         * Available options are 'sandbox' or 'live'
         */
        'mode' => env('PAYPAL_MODE', 'live'),
        // Specify the max connection attempt (3000 = 3 seconds)
        'http.ConnectionTimeOut' => 3000,
        // Specify whether or not we want to store logs
        'log.LogEnabled' => true,
        // Specigy the location for our paypal logs
        'log.FileName' => storage_path() . '/logs/paypal.log',
        /** 
         * Log Level
         *
         * Available options: 'DEBUG', 'INFO', 'WARN' or 'ERROR'
         * 
         * Logging is most verbose in the DEBUG level and decreases 
         * as you proceed towards ERROR. WARN or ERROR would be a 
         * recommended option for live environments.
         * 
         */

0 个答案:

没有答案