Sha256: 923465f8ddebfa48dd85ce7740deba0fe882843eba9ff1f00621baa882a639aa
Contents?: true
Size: 638 Bytes
Versions: 1
Compression:
Stored size: 638 Bytes
Contents
module Spree module PaymentDecorator def verify!(**options) process_verification(options) end private def process_verification(**options) protect_from_connection_error do response = payment_method.verify(source, options) record_response(response) if response.success? unless response.authorization.nil? self.response_code = response.authorization source.update(status: response.params['status']) end else gateway_error(response) end end end end end Spree::Payment.prepend Spree::PaymentDecorator
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_gateway-3.8.0 | app/models/spree/payment_decorator.rb |