-
Notifications
You must be signed in to change notification settings - Fork 97
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
Accessing the response variables #5
Comments
Me to, and i still did not find any solution, Ipn notification is returned as object and i don't know objects attributes... :( |
Check this: #35 |
If you're using RoR the response of of the IPN will be in params. paypal_adaptive doesn't 'wrap' this for you, all the hard work is already done!
here is an example params hash if you are interested
|
ipn = PaypalAdaptive::IpnNotification.new |
tzoro, are you running your code inside a rails action? |
@rromanchuk But how does one access params["transaction"]["0"][".id_for_sender_txn"] ??? |
@mihirjb Use:
|
I'm not sure if I'm getting confused, but I'm struggling to access attributes of Paypal response in a clean way
Eg
ipn = PaypalAdaptive::IpnNotification.new
ipn.send_back(env['rack.request.form_vars'])
if ipn.verified? #do some stuff.
But then if I want to know about the "status" attribute, I have to call
params["status"].
This seems wrong? Shouldn't I be able to access the attributes through the ipn object?
The text was updated successfully, but these errors were encountered: