Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

paypal - 'subscription profiles not supported'

I'm using website payments standard to create recurring payments for subscriptions.

I need to find out when the next billing date is, so it looks like I can use GetRecurringPaymentsProfileDetails nvp api with the recurring payment profile id.

But when I send the recurring payment profile id I get a failure back:

{'ack':'Failure',.... l_longmessage0: 'Subscription profiles not supported by Recurring Payment APIs.',
'l_shortmessage0': 'Subscription Profiles not supported.',....

Does this mean that subscription button recurring payment profiles cannot be retrieved via the GetRecurringPaymentsProfilesDetails NVP api?

If that is the case, is there some other api to get this detail for a subscription profile?

like image 252
dar Avatar asked Dec 17 '09 04:12

dar


2 Answers

GetRecurringPaymentsProfileDetails does not support subscription profiles created through payments standard, it only supports recurring payment profiles created through the nvp api.

As of this writing, there is no api to get the subscription details. If you want to know the current status, you have to use an IPN listener to capture and track all status changes yourself.

like image 56
dar Avatar answered Sep 30 '22 11:09

dar


You can hijack API by using /v1/payments/billing-agreements/{billingid}/transactions?start_date=YYY-MM-DD$end_date=YYY-MM-DD... then you juste have to check if last transactions fit your period.

like image 23
Cyril ALFARO Avatar answered Sep 30 '22 12:09

Cyril ALFARO