lib/active_merchant/billing/gateways/ogone.rb in activemerchant-1.30.0 vs lib/active_merchant/billing/gateways/ogone.rb in activemerchant-1.31.0

- old
+ new

@@ -152,26 +152,28 @@ commit('RES', post) end # Verify and transfer the specified amount. def purchase(money, payment_source, options = {}) - post = {} + post = {} + action = options[:action] || 'SAL' add_invoice(post, options) add_payment_source(post, payment_source, options) add_address(post, payment_source, options) add_customer_data(post, options) add_money(post, money, options) - commit('SAL', post) + commit(action, post) end # Complete a previously authorized transaction. def capture(money, authorization, options = {}) - post = {} + post = {} + action = options[:action] || 'SAL' add_authorization(post, reference_from(authorization)) add_invoice(post, options) add_customer_data(post, options) add_money(post, money, options) - commit('SAL', post) + commit(action, post) end # Cancels a previously authorized transaction. def void(identification, options = {}) post = {}