Sha256: 6bada730c17227e56a39242fe536ea59e5d917a0f9010a57b40cf493044f8c72
Contents?: true
Size: 800 Bytes
Versions: 2
Compression:
Stored size: 800 Bytes
Contents
module Workarea class Payment module CreditCardData def transaction_args ip_address = options[:checkout]&.order&.ip_address { order_id: tender.payment.id, billing_address: billing_address, ip_address: ip_address } end def billing_address { name: "#{address.first_name} #{address.last_name}", company: address.company, address1: address.street, city: address.city, state: address.region, country: address.country.try(:alpha2), zip: address.postal_code, phone: nil } end def payment_source tender.token.presence || tender.to_active_merchant end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-usaepay-1.2.0 | app/models/workarea/payment/credit_card_data.rb |
workarea-usaepay-1.1.1 | app/models/workarea/payment/credit_card_data.rb |