【发布时间】:2012-11-04 16:20:24
【问题描述】:
我目前正在尝试实施贝宝定期付款,我想测试“整个周期”。我发现这篇文章 http://www.paypalobjects.com/en_US/ebook/PP_Sandbox_UserGuide/testing_recurringpayments.html 以及 stackoverlfow 中的一些参考资料,它应该可以工作。但对我来说,它似乎不起作用。也许我必须为此深入研究代码,但我想知道这是否真的有效?
我正在使用https://github.com/thenbrent/paypal-digital-goods 库,我的订阅详情如下:
$subscriptionDetails = array(
'description' => 'Subscription for $10/month for the next year.',
'initial_amount' => '10.00',
'amount' => '10.00',
'period' => 'Day',
'frequency' => '1',
'total_cycles' => '12',
);
$pay = new PayPal_Subscription( $subscriptionDetails );
我已经在我的通知接收端设置了日志记录,但只有在我创建新的个人资料时才会受到影响。
【问题讨论】:
标签: testing paypal recurring-billing