贝宝(Paypal)沙盒(Sandbox)定期付款,初始金额待定 [英] Paypal Sandbox recurring payment with initial amount pending
问题描述
我正在此处使用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.
我已经验证:
- 帐户已设置为可以接受任何货币的货币
- 卖家帐户已启用数字商品(通过自动流程创建)
- 两个帐户均已通过验证
- 买方帐户具有信用卡和Paypal余额
- 两个帐户都位于美国
- 我尝试了多个帐户
任何帮助将不胜感激!
使用上述库创建订阅的代码段
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-d\TH: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)定期付款,初始金额待定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!