Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify_url is not working for recurring payment #53

Closed
krishnasrihari opened this issue Aug 6, 2013 · 1 comment
Closed

Notify_url is not working for recurring payment #53

krishnasrihari opened this issue Aug 6, 2013 · 1 comment

Comments

@krishnasrihari
Copy link

I have set the notify_url as below, but paypal doesn't send any notification on sandbox, I checked the paypal ipn history, its empty even I cancelled profile on paypal sandbox.

As for paypal checkout api, it should send the IPN notification but it doesn't.

  def client
     Paypal::Express::Request.new PAYPAL_CONFIG
  end

  def payment_request
    request_attributes = if self.recurring?
      {
        billing_type: :RecurringPayments,
        billing_agreement_description: DESCRIPTION[:recurring],
        notify_url: ipn_path
      }
  end 

  response = client.setup(
      payment_request,
      return_url,
      cancel_url,
      pay_on_paypal: true,
      no_shipping: true
    )
  def ipn_path
    Rails.application.routes.url_helpers.notification_url(secret: APP_CONFIG[:paypal_secret], host: APP_CONFIG[:domain])
  end
@nov
Copy link
Owner

nov commented Aug 7, 2013

You should ask this kind of questions to paypal developer support, not here.

@nov nov closed this as completed Aug 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants