PayPal Express Checkout - 创建定期付款资料无效

时间:2014-11-27 04:28:26

标签: php paypal

我们正在使用Express Checkout API重复付款。我们按照以下链接 https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPRecurringPayments/#id086513007E9

  1. 初始金额的经常性付款: -
  2. 我要求创建定期付款

    METHOD=CreateRecurringPaymentsProfile&VERSION=86&PWD=password&USER=XXXXXXXXXX&SIGNATURE=signature&TOKEN=token&PROFILESTARTDATE=2014-11-26T10%3A15%3A48Z&DESC=Silver+-+USD+3.95&BILLINGPERIOD=Day&BILLINGFREQUENCY=4&INITAMT=1&AMT=1&CURRENCYCODE=USD&IPADDRESS=127.0.0.1&BUTTONSOURCE=PP-ECWizard
    

    请求的回复: -

    Array
    (
    [PROFILEID] => I-L28955XWTU84
    [PROFILESTATUS] => PendingProfile
    [TIMESTAMP] => 2014-11-26T10:15:54Z
    [CORRELATIONID] => 83fa402749c8c
    [ACK] => Success
    [VERSION] => 86
    [BUILD] => 13630372
    )
    

    作为回应,PROFILESTATUS是" PendingProfile"但它应该" ActiveProfile"并且在客户帐户中没有扣除任何金额。

    1. 没有初始金额重复出现

      METHOD = CreateRecurringPaymentsProfile&安培; VERSION = 86&安培; PWD =密码&安培; USER = XXXXXXXXXX&安培; SIGNATURE =签名&安培; TOKEN =令牌安培; PROFILESTARTDATE = 2014-11-26T10%3A26%3A13Z&安培; DESC =银+ - + USD + 3.95&安培; BILLINGPERIOD =白天&安培; BILLINGFREQUENCY = 4和; AMT = 1&安培; CURRENCYCODE = USD&安培; IPADDRESS = 127.0.0.1&安培; BUTTONSOURCE = PP-ECWizard

    2. 请求的回复: -

      Array
      (
      [PROFILEID] => I-1RXFKHJ5H846
      [PROFILESTATUS] => ActiveProfile
      [TIMESTAMP] => 2014-11-26T10:26:21Z
      [CORRELATIONID] => 6f793b6e64a35
      [ACK] => Success
      [VERSION] => 86
      [BUILD] => 13630372
      )
      

      当我在没有初始金额的情况下重复运行时,它会返回" ActiveProfile"。

      我希望以初始金额重复进行,并期望从客户帐户中获得即时初始金额扣除的有效个人资料,因此请帮助我解决此问题。请注意 - pwd / signature / token被屏蔽,在实际代码中我们放了真正的pwd / signature / token。

      感谢。

1 个答案:

答案 0 :(得分:0)

remove String INITAMT = 1 ------> ActiveProfile