【发布时间】:2013-05-17 15:36:54
【问题描述】:
我已在我的网站上实施定期付款交易,
现在我的客户想要一个界面来更改该经常性交易的信用卡号,只需提交付款 ID(来自CreateRecurringPaymentsProfile)。所以我的问题是,是否有任何 API (php) 到 update an credit card number 的经常性支付交易。
【问题讨论】:
我已在我的网站上实施定期付款交易,
现在我的客户想要一个界面来更改该经常性交易的信用卡号,只需提交付款 ID(来自CreateRecurringPaymentsProfile)。所以我的问题是,是否有任何 API (php) 到 update an credit card number 的经常性支付交易。
【问题讨论】:
UpdateRecurringPaymentsProfile 中的 ACCT 变量
【讨论】:
CreateRecurringPaymentsProfile 时设置的参数相同。 . 还有一件事,我也可以更改下一次交易的日期吗?
credit card details 和profile_id 就是这样。我希望我也能得到更改日期的答案(仍在努力)。
这是对我有用的确切代码...
$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 Details 和ProfileId
【讨论】: