Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal recurring payments with variable amount

First, notice I have read many post regarding this topic, but the info provided is not enough for me or is not accurate.

I´m developing a website with AngularJS and Ruby on Rails that offers different services. Users can subscribe to these services (one or many) and they get a Paypal Recurring Payment (through a profile) to pay these services (using merchant API). For a fixed amount the service is working ok for me.

The problem is, the amount can be different from one period to another, depending on the number of services the user is subscribed.

I have read Paypal docs, but It´s still not clear to me what is the right approach.

My approaches are:

  1. Once a user subscribes a new service, I can remove the existing recurring payment profile (with fixed amount) and create a new one. This would be ok, but I have read I can´t delete a profile automatically from my application. I can only create. In order to delete an existing profile, I have to do it manually, by login in my business paypal account and delete it. If true, then this is not a solution for me, because I can´t do all flow automatically. However, this is quite strange for me. Is this true? If not, could you please let me know how to do it?

  2. Although, I have not read deep on it, I read on a post I can use Reference transactions to implement this. Is this right?

UPDATE https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECReferenceTxns/#recurringreftxns

As far as I understood, Reference transactions let me vary the amount to get from the buyer when I run it, but the problem is that this operation does not executes recurring (managed by Paypal). I should keep the logic in order to execute it from my application. Right?

Any other approach or clarification is welcome.

UPDATE My first approach is to create just one variable recurring payment with the amount of all services subscribed. But, maybe the solution is to create a recurring payment profile per each service?

like image 903
Rober Avatar asked Feb 10 '14 18:02

Rober


People also ask

How do I change the amount of a recurring payment in PayPal?

At the top of the page, click Activity. From the Transaction drop-down menu, click Subscription agreements. Use Search for transactions or any combination of the drop-down menus to locate a subscription. Locate the subscription that you want to modify and click the subscription name.

What is PayPal enhanced recurring payments?

Enhanced Recurring Payments. The Enhanced Recurring Payments Services enable you to provide your customers with the ability to sign up for Installment Plans, Automatic Billing, and Recurring Payment arrangements.

Can PayPal handle recurring payments?

Log in to your PayPal Business or Premier account at www.paypal.com. Click Tools > All Tools at the top of the page, and then select Recurring Payments from the Tools page. The Recurring payments dashboard opens.

What are examples of recurring payments?

Examples include cable bills, cell phone bills, gym membership fees, utility bills, and magazine subscriptions. Recurring billing may also be referred to as automatic bill payment.


1 Answers

1) This is true if you're using Standard Subscription buttons, but if you're working with the Recurring Payments API you can cancel the profile using ManageRecurringPaymentsProfileStatus.

2) Yes, with reference transactions you can charge any amount you need to at any time, but it would be left up to you to build your own recurring payments system, basically, utilizing reference transactions. You could have a script run each day that goes through all your accounts and processes due payments accordingly.

Another option would be to have your users create a Preapproval profile and then use the Pay API to process payments using the preapproval keys. This is very similar to reference transactions.

like image 74
Drew Angell Avatar answered Oct 23 '22 20:10

Drew Angell