fnando / paypal-recurring

PayPal Express Checkout API Client for recurring billing.
256 stars 124 forks source link

Paypal notification for cancel recurring payment. #11

Closed datnt closed 12 years ago

datnt commented 12 years ago

Hi fnando,

We are able to cancel Paypal recurring profile by using your code as below:

ppr = PayPal::Recurring.new(:profile_id => "I-8260FSSRY1MW") response2=ppr.cancel

Based on response2.response status, we are able to determine whether cancel is OK or FAILURE.

The issue is, if user (customer) cancel their Recurring-Profile by using their PayPal account, we do not receive any notifcation ?

P/S: For more information, we had setup IPN URL successfully when user create their Recurring profile. But this IPN URL is not being triggered when user cancel Recurring Profile on PayPal system.

Is there any issue at here?

Thank you and best regards, Dat

datnt commented 12 years ago

I made IPN working in the case user cancel Recurring Profile on Paypal. Solution:

  1. Login to sandbox of paypal by using ShopOwner Account
  2. Click on Profile Link
  3. Setting the IPN (Instant Payment Notification ) URL, which mean, turn on URL for this account.

P/S: I realize that, by using another method (Using Paypal Button, with form, then setting a field for notify_url), things work better than using Paypal API. (Reference: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_subscribe_buttons)