Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

undefined method `notify_url=' for #<PayPal::Recurring::Base:0x131651bc> #7

Closed
datnt opened this issue Apr 23, 2012 · 5 comments
Closed

Comments

@datnt
Copy link

datnt commented Apr 23, 2012

Hi fnando,

Thank you for your great gem.

I want Paypal to notify to our app whenever monthly payment occur. But when I try to add option "notify_url" I got the above issue.

Could you please give me a hint on this ?

Reference:
http://forums.devnetwork.net/viewtopic.php?f=1&t=42239
http://railscasts.com/episodes/142-paypal-notifications

@fnando
Copy link
Owner

fnando commented Apr 23, 2012

There is no notify_url method. You need to use the ipn_url option.

ppr = PayPal::Recurring.new({
    :amount      => "9.00",
    :currency    => "USD",
    :description => "Awesome - Monthly Subscription",
    :ipn_url     => "http://example.com/paypal/ipn",
    :frequency   => 1,
    :token       => "EC-05C46042TU8306821",
    :period      => :monthly,
    :reference   => "1234",
    :payer_id    => "WTTS5KC2T46YU",
    :start_at    => Time.now,
    :failed      => 1,
    :outstanding => :next_billing
  })

Nando Vieira
http://nandovieira.com.br

On Apr 22, 2012, at 11:43 PM, datnt wrote:

Hi fnando,

Thank you for your great gem.

I want Paypal to notify to our app whenever monthly payment occur. But when I try to add option "notify_url" I got the above issue.

Could you please give me a hint on this ?

Reference:
http://forums.devnetwork.net/viewtopic.php?f=1&t=42239
http://railscasts.com/episodes/142-paypal-notifications


Reply to this email directly or view it on GitHub:
#7

@datnt
Copy link
Author

datnt commented Apr 23, 2012

Hi

Thank you very much for your feedback.

I want to ensure that PayPal actually callback to my ipn_url. Is there any way I can test the ipn_url when I'm developing on localhost.

My ipn_url is: http://localhost:3000/payment_notifications

Thank you in advance,
Dat

@fnando
Copy link
Owner

fnando commented Apr 23, 2012

Try using something like the locatunnel gem.

Nando Vieira
http://nandovieira.com.br

On Apr 23, 2012, at 12:50 AM, datnt wrote:

Hi

Thank you very much for your feedback.

I want to ensure that PayPal actually callback to my ipn_url. Is there any way I can test the ipn_url when I'm developing on localhost.

My ipn_url is: http://localhost:3000/payment_notifications

Thank you in advance,
Dat


Reply to this email directly or view it on GitHub:
#7 (comment)

@datnt datnt closed this as completed Apr 23, 2012
@datnt datnt reopened this Jun 7, 2012
@datnt
Copy link
Author

datnt commented Jun 7, 2012

Hi fnando,

I've set ipn_url as per your suggestion but it does not work.

  1. I had check my IPN_URL by using Paypal tool and it works fine.
  2. I had observed since the last comment I made a month ago to check for sure.

Thank you in advance,
Dat

@datnt
Copy link
Author

datnt commented Jun 8, 2012

Found a solution.

Please refer to: #10

@datnt datnt closed this as completed Jun 8, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants