私は現在作成した支払いシステムのサンドボックスモードからライブモードに切り替えるよう努めています。私がpaypal sdkを使用したのはこれが初めてのことなので、私はそれに精通した人ではありません。あなたがpaypalにリダイレクトされるべきシステムのポイントに達すると、私は次のエラーを受け取り続けます。私はこれらのすべてを見て、変更を試みたが、まだ私のために働いていない前に、この質問が尋ねられたことを知っている。PayPal用PHP SDK RESTful APIのライブエラー
Error when trying to get to paypal
サンドボックスモードでは、それは完璧に動作しますが、私はライブの資格情報に認証情報を変更しました。
これ
は、システムここrequire __DIR__ . '/vendor/autoload.php';
define('SITE_URL', 'url name');
$paypal = new \PayPal\Rest\ApiContext(
new \PayPal\Auth\OAuthTokenCredential(
'Client ID',
'Secret Code'
)
);
を承認する必要があります私のシステムの始まりである私のsdk_config.iniファイルには、それは私のコードが入っている同じフォルダにされている。
;Account credentials from developer portal
[Account]
acct1.ClientId =
acct1.ClientSecret =
;acct2.ClientId = TestClientId
;acct2.ClientSecret = TestClientSecret
;Connection Information
[Http]
http.ConnectionTimeOut = 60
http.Retry = 1
;http.Proxy=http://[username:password]@hostname[:port][/path]
mode=live
;Service Configuration
[Service]
;service.EndPoint="https://api.sandbox.paypal.com"
; Uncomment this line for integrating with the live endpoint
service.EndPoint="https://api.paypal.com"
;Logging Information
[Log]
log.LogEnabled=true
; When using a relative path, the log file is created
; relative to the .php file that is the entry point
; for this request. You can also provide an absolute
; path here
log.FileName=PayPal.log
; Logging level can be one of FINE, INFO, WARN or ERROR
; Logging is most verbose in the 'FINE' level and
; decreases as you proceed towards ERROR
log.LogLevel=FINE
;Validation Configuration
[validation]
; If validation is set to strict, the PayPalModel would make sure that
; there are proper accessors (Getters and Setters) for each model
; objects. Accepted value is
; 'log' : logs the error message to logger only (default)
; 'strict' : throws a php notice message
; 'disable' : disable the validation
validation.level=strict
私は何が逃しているのか分からない、誰かがこれを修正する正しい方向に私を指してくれますか?また、paypalの開発者サイト内で、ライブボタンをクリックする実際のアプリの下で、私はこれらのクレデンシャルを使用して自分のコードを持っているライブボタンをクリックします。私はそれが生きていると言うが、私が戻ったときに、それは砂場に戻って行くと保存をクリックします。 エラーの原因になるように追加のコードが必要かどうかお知らせください。