Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion activemerchant.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Gem::Specification.new do |s|
s.author = 'Tobias Luetke'
s.email = '[email protected]'
s.homepage = 'http://activemerchant.org/'
s.rubyforge_project = 'activemerchant'

s.required_ruby_version = '>= 2.3'

Expand Down
11 changes: 11 additions & 0 deletions lib/active_merchant/billing/gateways/authorize_net_cim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ def add_payment_profile(xml, payment_profile)
add_credit_card(xml, payment_profile[:payment][:credit_card]) if payment_profile[:payment].has_key?(:credit_card)
add_bank_account(xml, payment_profile[:payment][:bank_account]) if payment_profile[:payment].has_key?(:bank_account)
add_drivers_license(xml, payment_profile[:payment][:drivers_license]) if payment_profile[:payment].has_key?(:drivers_license)
add_acceptjs(xml, payment_profile[:payment][:acceptjs]) if payment_profile[:payment].has_key?(:acceptjs)
# This element is only required for Wells Fargo SecureSource eCheck.Net merchants
# The customer's Social Security Number or Tax ID
xml.tag!('taxId', payment_profile[:payment]) if payment_profile[:payment].has_key?(:tax_id)
Expand All @@ -764,6 +765,16 @@ def add_payment_profile(xml, payment_profile)
xml.tag!('customerPaymentProfileId', payment_profile[:customer_payment_profile_id]) if payment_profile[:customer_payment_profile_id]
end

def add_acceptjs(xml, data_value)
return unless data_value
xml.tag!('opaqueData') do
# The credit card number used for payment of the subscription
xml.tag!('dataDescriptor', "COMMON.ACCEPT.INAPP.PAYMENT")
# The expiration date of the credit card used for the subscription
xml.tag!('dataValue', data_value[:data_value])
end
end

def add_ship_to_list(xml, ship_to_list)
xml.tag!('shipToList') do
add_address(xml, ship_to_list)
Expand Down