Sha256: 065c5ac60574b7cc044ce8408dd1639247f516d2491394051d484385032bfa8c
Contents?: true
Size: 785 Bytes
Versions: 1
Compression:
Stored size: 785 Bytes
Contents
module ActiveMerchant decorate Billing::CheckoutV2Gateway, with: :checkoutdotcom do def verify(credit_card, options={}) authorize(0, credit_card, options) end def add_payment_method(post, payment_method, options) post[:source] = {} if payment_method.is_a?(String) post[:source][:type] = 'id' post[:source][:id] = payment_method else post[:source][:type] = 'card' post[:source][:name] = payment_method.name post[:source][:number] = payment_method.number post[:source][:cvv] = payment_method.verification_value post[:source][:expiry_year] = format(payment_method.year, :four_digits) post[:source][:expiry_month] = format(payment_method.month, :two_digits) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-checkoutdotcom-1.2.0 | app/lib/active_merchant/billing/gateways/checkout_v2.decorator |