adamthedeveloper / wepay-rails

Collect payments from wepay in your rails application.
MIT License
32 stars 24 forks source link

preapprovals - not initiating #34

Closed nuriel closed 5 years ago

nuriel commented 10 years ago

hi, having some trouble with implementing a preapproval, the call:

 response      = wepay_gateway.perform_preapproval(checkout_params)

in init_preapproval returns:

 undefined method `merge' for nil:NilClass

it works great for checkout.. any ideas?

adamthedeveloper commented 10 years ago

I'll look into that and get back to you. Thanks for reporting it.

nuriel commented 10 years ago

thank you for the great gem.

let me know if I could help in any way.

On Tuesday, March 11, 2014, Adam Medeiros notifications@github.com wrote:

I'll look into that and get back to you. Thanks for reporting it.

Reply to this email directly or view it on GitHubhttps://github.com/adamthedeveloper/wepay-rails/issues/34#issuecomment-37330845 .

keenahn commented 9 years ago

Hey @nuriel, not sure if this is still relevant to you. I just started using this gem and ran into the same problem. Most likely, the function is failing because you're either including unrecognized params, or not including all required params.

https://www.wepay.com/developer/reference/preapproval#create