Created
March 20, 2018 10:37
-
-
Save vernondegoede/503870a82acd947d2fea420853518de8 to your computer and use it in GitHub Desktop.
Create a new Mollie payment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spree::Payment::Processing.module_eval do | |
def process!(amount = nil) | |
amount ||= money.money.cents | |
started_processing! | |
response = payment_method.create_transaction( | |
amount, | |
source, | |
gateway_options | |
) | |
handle_response(response, :pend, :failure) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment