【问题标题】:How to change the Credit Card Number of Recurring Payment Transaction?如何更改定期付款交易的信用卡号码?
【发布时间】:2013-05-17 15:36:54
【问题描述】:

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

【问题讨论】:

    标签: php paypal


    【解决方案1】:

    UpdateRecurringPaymentsProfile 中的 ACCT 变量

    【讨论】:

    • 感谢@Preston Alexander 的回复...我只想知道一件事,就是其他参数必须与我在CreateRecurringPaymentsProfile 时设置的参数相同。 . 还有一件事,我也可以更改下一次交易的日期吗?
    • 我认为不需要其他参数,您只需要更新您想要更新的内容。我不确定是否要更改日期 - 我相信是这样,但请在沙盒中尝试一下。
    • 谢谢@Preston Alexander 它工作得很好......实际上你只需要通过credit card details 和profile_id 就是这样。我希望我也能得到更改日期的答案(仍在努力)。
    【解决方案2】:

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

    $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

    【讨论】:

      猜你喜欢
      • 2013-01-25
      • 2012-06-18
      • 2015-11-26
      • 2016-03-09
      • 2014-05-08
      • 2018-01-21
      • 2012-01-14
      • 2014-03-28
      • 2016-10-13
      相关资源
      最近更新 更多