lib/active_merchant/billing/gateways/netbanx.rb in activemerchant-1.79.2 vs lib/active_merchant/billing/gateways/netbanx.rb in activemerchant-1.80.0

- old
+ new

@@ -210,11 +210,11 @@ def success_from(response) response.blank? || !response.key?('error') end def message_from(success, response) - success ? 'OK' : (response['error']['message'] || "Unknown error - please contact Netbanx-Paysafe") + success ? 'OK' : (response['error']['message'] || 'Unknown error - please contact Netbanx-Paysafe') end def authorization_from(success, url, method, response) if success && response.present? && url.match(/cardpayments\/v1\/accounts\/.*\//) response['id'] @@ -227,10 +227,10 @@ # payment_method_token is the token that needs to be used when # calling purchase with a token # # both id's are used to unstore, the payment token is only used for # purchase transactions - [response['id'], response['cards'].first['id'], response['cards'].first['paymentToken']].join("|") + [response['id'], response['cards'].first['id'], response['cards'].first['paymentToken']].join('|') end end # Builds the auth and U-A headers for the request def headers