app/models/spree/gateway/balanced_gateway.rb in spree_gateway-3.6.4 vs app/models/spree/gateway/balanced_gateway.rb in spree_gateway-3.6.5
- old
+ new
@@ -25,10 +25,10 @@
card_store_response = provider.store(payment.source, options)
card_uri = card_store_response.authorization.split(';').first
# A success just returns a string of the token. A failed request returns a bad request response with a message.
- payment.source.update_attributes!(:gateway_payment_profile_id => card_uri)
+ payment.source.update!(:gateway_payment_profile_id => card_uri)
rescue Error => ex
payment.send(:gateway_error, ex.message)
end
def options