Sha256: c3505a6269f45605fee38a665266c4aebfeec7aabba90b82f69c724d55037d64
Contents?: true
Size: 768 Bytes
Versions: 4
Compression:
Stored size: 768 Bytes
Contents
module Conekta class Charge < Resource include Conekta::Operations::Find include Conekta::Operations::Where include Conekta::Operations::Create include Conekta::Operations::CustomAction attr_accessor :livemode, :amount, :created_at, :currency, :description, :reference_id, :failure_code, :failure_message, :fee, :monthly_installments, :device_fingerprint, :status, :exchange_rate, :foreign_currency, :amount_in_foreign_currency, :checkout_id, :checkout_order_count def capture custom_action(:post, 'capture') end def refund(params=nil) params = { 'amount' => (params || self.amount) } custom_action(:post, 'refund', params) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
conekta-1.1.3 | lib/conekta/charge.rb |
conekta-1.1.2 | lib/conekta/charge.rb |
conekta-1.1.1 | lib/conekta/charge.rb |
conekta-1.1.0 | lib/conekta/charge.rb |