Sha256: 84a8683e7c5e76827040b5a0ba6b5725ca69c0a258f13739020b1ef7101d0912
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
module ActiveMerchant module Billing class PaywareConnectGateway < ActiveMerchant::Billing::Gateway module Actions class Capture < PaywareConnectGateway::XMLBuilder attr_reader :cents, :authorization def initialize(cents, authorization, merged_options) @cents = cents @authorization = authorization super(merged_options) end def build build_credit_request do |xml| xml.COMMAND "COMPLETION" xml.TROUTD authorization xml.TRANS_AMOUNT "%.2f" % (cents.to_f / 100.0) end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-payware_connect-2.1.2 | lib/active_merchant/billing/payware_connect_gateway/actions/capture.rb |