简体   繁体   English

使用Paypal IPN模拟器进行subscr_payment

[英]subscr_payment using paypal ipn simulator

The paypal IPN simulator "currently" (As in I'm assuming never will) does not have functionality to test the subscr_payment payment option, this is really putting a dead hault in my project. Paypal IPN模拟器“当前”(我假设永远不会)没有测试subscr_payment付款选项的功能,这确实使我的项目陷入困境。 I've read that I can just create a button that simulates this, but I don't have a clue how and after looking I can't find any information on it. 我读过,我只能创建一个模拟该按钮的按钮,但是我不知道如何以及在查找后找不到任何信息。

I'm creating a subscription based system for hosting a special type of website, I have everything done besides for the subscription model now and it seems like it's going to be the hardest part. 我正在创建一个用于托管特殊类型网站的基于订阅的系统,除了订阅模型之外,我现在已经完成了所有其他工作,这似乎将是最困难的部分。

It is completely possible to test recurring billing with Paypal. 完全有可能使用Paypal测试定期计费。

There are multiple ways possible for this. 为此有多种方法。

One is the paypal subscribe button and another way (which i have used) is via a subscription form. 一种是贝宝的订阅按钮,另一种方式(我已经使用过)是通过订阅表单。

For the subscribe button you can refer this documentation , it contains all the information you need to setup this. 对于订阅按钮,您可以参考本文档 ,其中包含设置此文档所需的所有信息。

For second method, you need to create a form and place all the required variable in that form. 对于第二种方法,您需要创建一个表单并将所有必需的变量放入该表单中。

All the required variables are listed here . 此处列出所有必需的变量。

I hope this helps. 我希望这有帮助。

Hopefully this workaround will help you. 希望这种解决方法能对您有所帮助。 From within the PayPal developer site, you can go to the IPN simulator, select Transaction Type as Web Accept, click Show All Fields. 在PayPal开发人员站点内,您可以转到IPN模拟器,选择“交易类型”为“ Web接受”,然后单击“显示所有字段”。 You can then edit txn_type to be subscr_payment, subscr_signup, etc. 然后,您可以将txn_type编辑为subscr_payment,subscr_signup等。

It's not perfect, as it doesn't give you all of the variables, but you can put info in other entries, and use a logical to determine whether or not the correct entry exists. 这不是完美的,因为它不能为您提供所有变量,但是您可以将信息放在其他条目中,并使用逻辑来确定是否存在正确的条目。

Do one test subscription, so that you have the values, and then work from there. 做一个测试订阅,以便您拥有值,然后从那里开始工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM