class PayCertify::Gateway::Charge
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/charge.rb, line 30 def attributes_to_gateway_format formatted = super attribute_mapping = PayCertify::Gateway::AttributeMapping formatted.merge! attribute_mapping.type(self) formatted.merge!({'TokenMode' => 'DEFAULT'}) formatted end
save!()
click to toggle source
Calls superclass method
PayCertify::Gateway::Base::Resource#save!
# File lib/paycertify/gateway/charge.rb, line 24 def save! super self.transaction_id = response['response']['transaction_result']['pn_ref'] self end
Also aliased as: execute!
success?()
click to toggle source
# File lib/paycertify/gateway/charge.rb, line 20 def success? response['response']['transaction_result']['result'] == '0' end
type()
click to toggle source
# File lib/paycertify/gateway/charge.rb, line 16 def type 'sale' end