In my application I will have function, which will pay TO my users every month.
What kind of preapproval I should have ? Is this neccessary thing ?
Can you recommend me any good gem for this ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PreApprovals are for collecting money (i.e. they pay you). For sending money, you need to look at adaptive payments, in particular the Implicit Payment feature.
It allows you to programmatically send money out of your own account (i.e. You pay them).
PayPal currently doesn’t have any product that automates this, so you need to write a script on your side that will make that API call once a month for all your users.
Check out page 25 for more info. [ https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_AdaptivePayments.pdf ]
As far as a Gem goes, i don’t believe there is one explicitly for this, however you could probably tweak ActiveMerchant (Or at least use it as a starting point) for this purpose, as it’s basically a Pay API call, with the exception that you specify yourself as sender.