class PayCertify::Gateway::Transaction
Constants
- API_ENDPOINT
- ATTRIBUTES
Public Instance Methods
attributes_to_gateway_format()
click to toggle source
Calls superclass method
PayCertify::Gateway::Base::Resource#attributes_to_gateway_format
# File lib/paycertify/gateway/transaction.rb, line 28 def attributes_to_gateway_format formatted = super attribute_mapping = PayCertify::Gateway::AttributeMapping formatted.merge! attribute_mapping.expiration_date(self) formatted.merge! attribute_mapping.type(self) formatted end
save!()
click to toggle source
Calls superclass method
PayCertify::Gateway::Base::Resource#save!
# File lib/paycertify/gateway/transaction.rb, line 18 def save! super self.transaction_id = response['response']['pn_ref'] self end
success?()
click to toggle source
Calls superclass method
PayCertify::Gateway::Base::Resource#success?
# File lib/paycertify/gateway/transaction.rb, line 24 def success? super && response['response']['result'] == '0' end