我正在使用 PHP 库此处来创建新的订阅配置文件.如果我设置了初始金额,配置文件将显示为待定".
I'm using the PHP library here to create a new subscription profile. If I set an initial amount, the profile appears as "Pending".
示例:
Pending
Customer Mark Wally Verified
Profile start date Feb 18, 2013 | Profile ID I-BE824P6F9PER
另一方面,如果我没有设置初始付款金额,则个人资料将是活动的".我将初始付款和开始日期设置为未来 1 个月,因为我想按月计费并立即收到付款.
On the other hand, if I set no initial payment amount, the profile will be "Active". I am setting the initial payment and the start date 1 month in the future since I want to bill monthly and get a payment right away.
我已经验证过:
任何帮助将不胜感激!
用于创建使用上面列出的库的订阅的代码片段:
Code snippet to create the subscription that use the library listed above:
$subscription_details = array(
'description' => 'Premium membership: $4.95 every 30 days',
'initial_amount' => '4.95',
'amount' => '4.95',
'period' => 'Day',
'start_date' => gmdate( 'Y-m-dTH:i:s', strtotime( '+30 day' ) ),
'frequency' => '30'
);
以防万一其他人遇到这个问题,我的发现是:
Just in case someone else has this trouble, my findings are:
没有什么可解决的——沙箱真的很慢,有时需要几天时间才能使配置文件变为活动状态并发送 IPN.换句话说,沙箱根本不适合测试这些功能,只需上线并退回几个测试即可.甚至直播有时也需要一点时间......我看到有时需要几个小时,所以不要发疯.
There is nothing to solve -- the sandbox is just really slow, sometimes it took a couple days for the profile to become active and send the IPN. In other words, sandbox isn't good to test these functions at all, just go live and refund a couple tests. Even live sometimes takes a bit of time... I've seen it take a few hours sometimes, so don't go crazy.
这篇关于Paypal Sandbox 定期付款,初始金额待定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!