简体   繁体   English

贝宝订阅集成php

[英]Paypal subscription integration php

I have spent all day on something that should only take a couple of minutes. 我整天都花了几分钟才完成。

I need to add a subscription service onto a website, the user needs to enter their full name and email address as part of the subscription, paypal should then take the payment and redirect back to the site while passing the full name and email so accounts can be created. 我需要在网站上添加订阅服务,用户需要输入其全名和电子邮件地址作为订阅的一部分,然后贝宝(Paypal)应该先付款,然后在传递全名和电子邮件的情况下重定向回该网站,以便帐户可以被创建。

I am at a loss here as their documentation is all over the place and conflicts with itself. 我在这里不知所措,因为他们的文档无处不在且与自身冲突。 How do I create a subscription button with the additional fields and get it all working. 如何创建带有其他字段的订阅按钮,并使所有按钮正常工作。

And how the hell do I test it? 我该如何测试呢? I have attempted creating one with the subscription button on the paypal site but when the checkout is completed it doesn't go back to the site to create the fields unless you press the button and when you do there is nothing no post data no get data nothing! 我试图在贝宝网站上使用“订阅”按钮创建一个,但是结帐完成后,除非您按下该按钮,否则它不会返回该网站来创建字段,除非您按了该按钮,否则将没有任何发布数据也没有获取数据没有!

You could try using PHP-Payment it allows you to redirect to a page upon success. 您可以尝试使用PHP-Payment,它允许您在成功后重定向到页面。 https://github.com/phpfour/php-payment/tree/master/src/php/Rbs https://github.com/phpfour/php-payment/tree/master/src/php/Rbs

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

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