Testing recurring payments in the Paypal sandbox

淺唱寂寞╮ 提交于 2019-11-28 04:03:47

问题


I've read this post, and this one, and I didn't find my solution.

I'm trying to test the recurring payments using the Paypal Standard payment system. The problem is that the minumum frequency period for recurring payments is 1 day (1D). And this is a too long time to test correctly.

I read this article saying that if you setup the period to 1D in the sandbox, the call to the IPN is done each minute, but I was unable to make it work.

Do you know any way to have full control to test the recurring payments?


回答1:


One day is the shortest timeframe you can set. You used to be able to test recurring payments that billed every minute, but this was disabled shortly after it was rolled out. What some merchants have done in the past if they did not want to wait the full day was to set up their own IPN simulator, similar to what is currently on the developer.paypal.com site. The difference is that they would set it up to pass over all the recurring payment details. Basically, it was just a form that posted over all of the variables that PayPal would have sent. Otherwise, you would have to wait the full day for the profiles to bill again.




回答2:


As I commented in the accepted answer, it's possible to add fields by editing the HTML via firebug / chrome dev tools to add additional fields to the IPN sent by the IPN simulator. This way you can add the additional fields you require (like recurring_payment_id), which will be sent with the IPN to your specified URL. Once you've added your additional fields, copy the html so you can add it every time you want to use it. I'm considering writing a grease monkey extension (or something) that adds some javascript to the page, allowing for additional IPN types, like those needed for recurring payments.



来源:https://stackoverflow.com/questions/17212090/testing-recurring-payments-in-the-paypal-sandbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!