2

我已经在我的网站上实现了经常性支付交易,现在我的客户想要一个界面来更改该经常性交易的信用卡号,方法是只提交支付 ID(从 中找到CreateRecurringPaymentsProfile)。所以我的问题是,是否有任何 API (php) 用于update an credit card number定期支付交易。

4

2 回答 2

1

UpdateRecurringPaymentsProfile中的 ACCT 变量

于 2013-05-17T19:44:51.073 回答
1

这是对我有用的确切代码......

$URPDetails = new UpdateRecurringPaymentsProfileRequestDetailsType();
    $UpdateRecurringPaymentsProfileRequestTypeObj = new UpdateRecurringPaymentsProfileRequestType();
    $UpdateRecurringPaymentsProfileRequestTypeObj->UpdateRecurringPaymentsProfileRequestDetails=$URPDetails;

    $UpdateRecurringPaymentsProfileReqObj = new UpdateRecurringPaymentsProfileReq();
    $UpdateRecurringPaymentsProfileReqObj->UpdateRecurringPaymentsProfileRequest=$UpdateRecurringPaymentsProfileRequestTypeObj;
    $paypalService = new PayPalAPIInterfaceServiceService();

        try {
            /* wrap API method calls on the service object with a try catch */
            $createRPProfileResponse = $paypalService->UpdateRecurringPaymentsProfile($UpdateRecurringPaymentsProfileReqObj);   
        } catch (Exception $ex) {
            echo 'ERROR: '.$e->getMessage()."\n";
            //exit;
        }

其中$URPDetails对象包含Credit Card DetailsProfileId

于 2013-05-18T13:02:43.463 回答