简体   繁体   English

使用 Devise 和 Paypal 进行用户创建和订阅支付

[英]Using Devise with Paypal for User Creation and Subscription Payment

I am looking to extend the Devise user/sign_up path to include subscription payment.我希望扩展 Devise 用户/注册路径以包括订阅付款。 My aim is to have a user create their account only after payment has been processed.我的目标是让用户仅在处理付款后创建他们的帐户。

For the authentication I am using Devise, for payment I am using AM and Paypal API.对于身份验证,我使用 Devise,对于付款,我使用 AM 和 Paypal API。 The closest thing I have found is: http://rorramblings.blogspot.com/2010/10/customizing-devise-to-pseudo-multi.html yet it seems to be missing quite a bit of the details.我发现的最接近的是: http://rorramblings.blogspot.com/2010/10/customizing-devise-to-pseudo-multi.html但它似乎缺少很多细节。 A push in the right direction will help!朝着正确的方向推动会有所帮助!

As far as recurring Paypal Payments, I have found the following: http://www.naivehack.com/2010/11/24/active-merchant-paypal-recurring-payment/ [http://www.parkerkohl.com/paypal-rails-3-recurring-billing/]... hope this helps至于经常性 Paypal 付款,我发现以下内容: http://www.naivehack.com/2010/11/24/active-merchant-paypal-recurring-payment/ [http://www.parkerkohl.com/ paypal-rails-3-recurring-billing/]...希望这会有所帮助

Well after the user pays on paypal, paypal sends the user to the return url back on your site.在用户支付 paypal 之后,paypal 将用户发送到返回 url 回到您的站点。 Have the return url point to a page where the user can sign up.让返回 url 指向用户可以注册的页面。

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

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