paypal_adaptive gem in Rails: Dynamic Receiver "Population" (Chained Payments)

Posted by Jmlevick on Stack Overflow See other posts from Stack Overflow or by Jmlevick
Published on 2012-06-23T01:25:23Z Indexed on 2012/06/23 3:16 UTC
Read the original article Hit count: 199

Note: I didn't find a better title for this O.o

Hello, Humm... Look, what I want to do is to have a Rails app where a visitor can click a button/link to make a "special" chained payment using Paypal; Currently I have a Users registration form that has one field for the user to enter his/her paypal account email, and as I saw here: http://marker.to/XGg9MR it is possible to specify the primary reciever and the secondary ones by adding such info in a controller action when using the paypal_adaptive gem in a rails app. The thing is, I don't want to hard code the secondary reciever as I need to specify a different secondary reciever from time to time, (being specific my primary reciever will always be the same, but depending on what button/link the visitor clicks, the secondary one is going to change) and I want that secondary reciever email to be the paypal e-mail account from one of the registered users when the visitor clicks on their specific button/link...

My question is:

Is it possible to create such enviroment functionality in my app using the current implementation of the paypal_adaptive gem?

Could someone point me in the right direction on how to accomplish such thing? I'm still learning rails and also I'm really new in the paypal handling universe with this framework! XD

P.S. Thanks! :)

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about paypal