paypal_adaptive icon indicating copy to clipboard operation
paypal_adaptive copied to clipboard

Support for ruby 2.0

Open jims3ne1 opened this issue 12 years ago • 3 comments

Is this compatible with ruby 2.0? We tested it, it seems fine but just wondering if there's anything we should be aware of.

jims3ne1 avatar Jul 08 '13 09:07 jims3ne1

I have not tested it myself but if anyone else is using it with 2.0, please comment here. On Jul 8, 2013 4:53 AM, "jimbocortes" [email protected] wrote:

Is this compatible with ruby 2.0. We tested it, it seems fine but just wondering if there's anything we should be aware of.

— Reply to this email directly or view it on GitHubhttps://github.com/tc/paypal_adaptive/issues/75 .

tc avatar Jul 08 '13 14:07 tc

I have found that paypal_adaptive 0.3.6 send_back fails to validate a Paypal IPN under ruby-2.0.0-p353, yet validates just fine under ruby-1.9.3-p484.

Don't know if it's relevant or not but in another gem, I encountered this Net::HTTP incompatibility (and successfully utilized the monkey patch); there could be other Net::HTTP changes in ruby 2.0 that are affecting paypal_adaptive.

Update: It's possible that this issue is limited to Heroku apps.

rchekaluk avatar Dec 20 '13 19:12 rchekaluk

Under ruby-2.0.0-p353, I found that the PaypalAdaptive::Request.preapproval POST response is binary data; since this cannot be parsed as JSON, preapproval returns an error message of "Response is not in JSON format."

rchekaluk avatar May 23 '14 21:05 rchekaluk