Skip to content

Instantly share code, notes, and snippets.

@adamvr
Created July 19, 2012 08:25
Show Gist options
  • Save adamvr/3141560 to your computer and use it in GitHub Desktop.
Save adamvr/3141560 to your computer and use it in GitHub Desktop.
active_paypal_adaptive_payment patches
301,302c301,302
< x.endingDate opts[:end_date].strftime("%Y-%m-%dT%H:%M:%S")
< x.startingDate opts[:start_date].strftime("%Y-%m-%dT%H:%M:%S")
---
> x.endingDate opts[:end_date].strftime
> x.startingDate opts[:start_date].strftime
301,302c301,302
< x.endingDate opts[:end_date].strftime("%Y-%m-%dT%H:%M:%S")
< x.startingDate opts[:start_date].strftime("%Y-%m-%dT%H:%M:%S")
---
> x.endingDate opts[:end_date].strftime("%FT%T%:z")
> x.startingDate opts[:start_date].strftime("%FT%T%:z")
@adamvr
Copy link
Author

adamvr commented Jul 19, 2012

This gist patches lib/active_merchant/billing/gateways/paypal_adaptive_payment.rb to include the GMT offset in the start and end dates when submitting a preapproved payment request

@adamvr
Copy link
Author

adamvr commented Jul 19, 2012

Pretend that 72b0b6 didn't happen...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment