Skip to content

Instantly share code, notes, and snippets.

@sparrow
Created October 11, 2016 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sparrow/ce96613fe1720cae3e4c7123cf364e69 to your computer and use it in GitHub Desktop.
Save sparrow/ce96613fe1720cae3e4c7123cf364e69 to your computer and use it in GitHub Desktop.
This is a Ruby code snipped that we used for our blog post https://rubygarage.org/blog/how-to-integrate-paypal-into-spree at RubyGarage. It demonstrates how to set up the autocapture feature for Paypal Express Checkout. This code snippet is taken from the Paypal website.
class PaypalExpressCheckout < Spree::PaymentMethod
def auto_capture?
false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment