Sha256: 8d4e57b7831f479c6f859067dc5a7c628100ec79c06f70345aacade94328dd75
Contents?: true
Size: 597 Bytes
Versions: 4
Compression:
Stored size: 597 Bytes
Contents
Spree::Payment::Processing.module_eval do def process!(amount = nil) if payment_method.is_a? Spree::Gateway::MollieGateway process_with_mollie else process_with_spree end end private def process_with_spree if payment_method && payment_method.auto_capture? purchase! else authorize! end end def process_with_mollie amount ||= money.money started_processing! response = payment_method.create_transaction( amount, source, gateway_options ) handle_response(response, :pend, :failure) end end
Version data entries
4 entries across 4 versions & 1 rubygems