简体   繁体   English

Rails +贝宝。 如何向不同的卖家付款?

[英]Rails + Paypal. How to pay different sellers?

I have a rails app where my users can login through Paypal (Oauth2). 我有一个Rails应用程序,我的用户可以在其中通过Paypal(Oauth2)登录。

I would like to give the ability to my logged users (buyers) to make payments to other (multiple) paypal accounts (sellers). 我想让已登录的用户(买方)能够向其他(多个)贝宝帐户(卖方)付款。

My understanding is that I can achieve that only via adaptive payments (classic API). 我的理解是,我只能通过自适应支付(经典API)来实现这一目标。

1) Is my assumption right? 1)我的假设正确吗?

2) Is the best gem for adaptive payment this one: paypal-sdk-adaptivepayments? 2)自适应付款的最佳选择是吗:paypal-sdk-adaptativepayments?

3) Should I create a classic app as opposed to a REST API app? 3)我应该创建经典应用程序而不是REST API应用程序吗?

4) If 3 is true, should I also handle the login using the classic app? 4)如果3为真,我还应该使用经典应用程序处理登录吗? (as of now I m using a REST API app for login) (截至目前,我正在使用REST API应用进行登录)

5) Can the user pay without having to insert again his credentials? 5)用户可以在无需再次输入其凭证的情况下付款吗?

Thanks 谢谢

Try using https://github.com/jpablobr/active_paypal_adaptive_payment for chained, split payments. 尝试使用https://github.com/jpablobr/active_paypal_adaptive_payment进行链式拆分付款。

You need to create a classic app and provide :appid => "APP-80W284485P519543T" , 您需要创建一个经典应用并提供:appid => "APP-80W284485P519543T"

for test :appid => "APP-80W284485P519543T" . 用于测试:appid => "APP-80W284485P519543T"

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

相关问题 Rails 4:PayPal IPN,各种卖家的付款 - Rails 4: PayPal IPN, Payments for various Sellers 如何在我的rails应用程序中使用paypal自动支付用户费用? - How do I automatically pay users using paypal in my rails app? 如果买家拥有Paypal帐户,如何通过Paypal直接付款进行付款? - how to pay through a Paypal Direct Payment if buyer have a paypal account? 使用Rails和'paypal-sdk-merchant'gem将多个接收器添加到Paypal Mass Pay - Add multiplie receivers to Paypal Mass Pay using Rails and 'paypal-sdk-merchant' gem 如何使用已打开的“使用信用卡或借记卡付款”标签打开PayPal结帐? - How to open PayPal checkout with opened “Pay with a credit or debit card” tab? 如何将Paypal与Ruby on Rails集成 - How to integrate Paypal with Ruby on Rails 如何在Rails出价中实施卖方可以在24小时内取消或接受或交易被取消的出价? - How can I implement in Rails bid offers that sellers can cancel or accept within 24hrs or transaction is cancelled? 通过使用paypal-ruby-sdk创建Paypal定期订阅计划时,如何使卖方支付交易费用 - How to make seller pay the transaction fees when creating Paypal recurring subscription plan by using paypal-ruby-sdk 如何在导轨中集成 paypal 智能按钮来实现 Paypal 支出 - How to implement Paypal payouts with paypal smart button integration in rails Paypal与铁轨 - Paypal with rails
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM