[英]PayPal Recurring Payments Billing frequency
I am implementing paypal in my website first time so can anybody tell me that how can i test recurring payments as the Minuimum billing cycle is day and frequency is 1 so should i have to wait for one day to check the IpN handler hits? 我是第一次在我的网站上实现paypal所以任何人都可以告诉我,如何测试定期付款,因为Minuimum结算周期是一天,频率是1所以我是否应该等待一天检查IpN处理程序命中? or is there any other way to test recurring payment without waiting?
或者有没有其他方法来测试定期付款而不等待?
Thanks in advance 提前致谢
If you need to test subscriptions or recurring payment IPN's you can easily do so by creating your own HTML form and setting the action to your IPN listener URL. 如果您需要测试订阅或定期付款IPN,您可以通过创建自己的HTML表单并将操作设置为IPN侦听器URL来轻松完成。
Add hidden fields to the form that match the fields you would expect to get from PayPal, which you can see by doing an actual transaction on the sandbox to get that first IPN, and then duplicate it in your test form. 在表单中添加与您希望从PayPal获得的字段匹配的隐藏字段,您可以通过在沙箱上执行实际事务来获取第一个IPN,然后在测试表单中复制它。
This way, you can submit the form directly to your IPN listener and actually see the result on the screen. 这样,您可以将表单直接提交给您的IPN侦听器,并在屏幕上实际查看结果。 This is also useful for troubleshooting.
这对于故障排除也很有用。
The only thing you need to consider is that when testing this way the IPN will not verify because the original data did not come from PayPal. 您需要考虑的唯一事情是,当以这种方式测试时,IPN将无法验证,因为原始数据不是来自PayPal。 You could easily handle this in your code for testing purposes.
您可以在代码中轻松处理此问题以进行测试。
Once you have everything working the way you want like this you can rest assured it will work the same way for actual IPN's received from PayPal. 一旦你按照你想要的方式工作,你可以放心,它将以同样的方式工作,从PayPal收到实际的IPN。
To the best of my knowledge, there is no way other than waiting to test PayPal subscriptions. 据我所知,除了等待测试PayPal订阅之外别无他法。 You cannot run the sandbox under an artificial clock:
你不能在人工时钟下运行沙箱:
Similar question: 类似的问题:
Testing Paypal subscription IPN 测试Paypal订阅IPN
PayPal Documentation: PayPal文档:
您可以根据需要在paypal沙箱上测试它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.