1
votes

We have set up Website Payments Pro account and I managed to use ruby gem paypal-recurring to create initial payment and recurring profile.

But I still don't know few things and I can't find answer to some of them in API documentation (and/or on stack overflow).

  • do they notify us via IPN that the next payment is billed?
  • OR should I take granted that they bill the user every billing period automatically without any notification and I should rely on "cancel" IPN request (when the user cancels the payment on his/her paypal account)?
  • OR I should be the one who will request next payment to users paypal account every billing period? (if this is the case, then I don't really get why I'm sending billing period to paypal when I'm creating recurring profile...)
  • OR it works some other way?
2
So I've managed to prepare something to get it working... But I can't test it on the sandbox, as they don't send me the bill request via IPN every minute as they promise here cms.paypal.com/us/cgi-bin/… . In fact, I receive only the initial payment request with status pending due to multiple currencies. The sandbox is set to GBP and I request the payment in GBP too (for this test) but it still complains about multiple currencies. So I don't get any other request after all. Just the initial one :( - Dalibor Filus

2 Answers

1
votes

do they notify us via IPN that the next payment is billed?

Exactly. You'll receive an IPN message each time a recurring payments profile is billed.
The main ID to refer to in each IPN message is the recurring_payment_id, which is the recurring payments profile ID which you got in response for calling the CreateRecurringPaymentsProfile API.

The IPN message will also include other data, such as the outstanding balance, next payment date, et cetera.
You can find a list of all included variables here

-1
votes

Simplify Integrations with Downloads and SDKs(paypal api)

Please refer this