我正在开发网站,用户将获得一些付费内容。在这种情况下,我正在使用PayPal订阅。我成功订阅并希望获得订阅到期日期。我正在使用GetRecurringPaymentsProfileDetails
方法获取有关订阅的信息。这是这种方法的结果:
`array (size=45)
'PROFILEID' => string 'I-DLUN4G0R3G0F' (length=14)
'STATUS' => string 'Active' (length=6)
'AUTOBILLOUTAMT' => string 'NoAutoBill' (length=10)
'DESC' => string 'Monthly subscription' (length=20)
'MAXFAILEDPAYMENTS' => string '3' (length=1)
'SUBSCRIBERNAME' => string 'blah-blah-blah' (length=14)
'PROFILESTARTDATE' => string '2015-09-08T07:00:00Z' (length=20)
'NEXTBILLINGDATE' => string '2015-09-08T10:00:00Z' (length=20)
'NUMCYCLESCOMPLETED' => string '0' (length=1)
'NUMCYCLESREMAINING' => string '0' (length=1)
'OUTSTANDINGBALANCE' => string '0.00' (length=4)
'FAILEDPAYMENTCOUNT' => string '0' (length=1)
'TRIALAMTPAID' => string '0.00' (length=4)
'REGULARAMTPAID' => string '0.00' (length=4)
'AGGREGATEAMT' => string '0.00' (length=4)
'AGGREGATEOPTIONALAMT' => string '0.00' (length=4)
'FINALPAYMENTDUEDATE' => string '1970-01-01T00:00:00Z' (length=20)
'TIMESTAMP' => string '2015-09-08T10:55:59Z' (length=20)
'CORRELATIONID' => string 'fb5da7dc8451f' (length=13)
'ACK' => string 'Success' (length=7)
'VERSION' => string '86.0' (length=4)
'BUILD' => string '17972692' (length=8)
'BILLINGPERIOD' => string 'Month' (length=5)
'BILLINGFREQUENCY' => string '1' (length=1)
'TOTALBILLINGCYCLES' => string '0' (length=1)
'CURRENCYCODE' => string 'GBP' (length=3)
'AMT' => string '9.99' (length=4)
'SHIPPINGAMT' => string '0.00' (length=4)
'TAXAMT' => string '0.00' (length=4)
'REGULARBILLINGPERIOD' => string 'Month' (length=5)
'REGULARBILLINGFREQUENCY' => string '1' (length=1)
'REGULARTOTALBILLINGCYCLES' => string '0' (length=1)
'REGULARCURRENCYCODE' => string 'GBP' (length=3)
'REGULARAMT' => string '9.99' (length=4)
'REGULARSHIPPINGAMT' => string '0.00' (length=4)
'REGULARTAXAMT' => string '0.00' (length=4)
`
如上所示,我有NEXTBILLINGDATE
字段,我认为这就是我所需要的。问题是该字段显示的时间不正确。根据我的NEXTBILLIGDATE
和REGULARBILLINGPERIOD
字段,REGULARBILLINGFREQUENCY
似乎应该像2015-10-08T07:00:00Z。此外,也许有人知道如何测试过期的订阅?或者如何过期订阅,PayPal沙盒中是否有任何工具?希望在这里找到解决方案。感谢