PHP PayPal SDK新设计

时间:2015-12-15 14:26:25

标签: php paypal paypal-sandbox paypal-rest-sdk

当我尝试使用PayPal结帐时,我仍然收到旧设计。如何切换到新的?

$sdkConfig = array(
    'mode' => 'sandbox',
);

$cred = new OAuthTokenCredential("CLIENT ID", "SECRET", $sdkConfig);

$apiContext = new ApiContext($cred, 'Request' . time());
$apiContext->setConfig($sdkConfig);

1 个答案:

答案 0 :(得分:0)

新的PayPal Design尚未在沙盒模式下使用。

$sdkConfig = array(
    'mode' => 'live',
);

$cred = new OAuthTokenCredential("CLIENT ID", "SECRET", $sdkConfig);

$apiContext = new ApiContext($cred, 'Request' . time());
$apiContext->setConfig($sdkConfig);