Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass card owner when storing tokenized cards #3007

Merged
merged 3 commits into from
Aug 7, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
= ActiveMerchant CHANGELOG

== HEAD
* Bambora formerly Beanstream: Pass card owner when storing tokenized cards [#3006]
* UsaEpayTransaction: Support UMcheckformat option for echecks [dtykocki] [#3002]

== Version 1.95.0 (May 23, 2019)
* Adyen: Constantize version to fix subdomains [curiousepic] #3228
Expand Down
2 changes: 2 additions & 0 deletions lib/active_merchant/billing/gateways/beanstream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ def interac

# To match the other stored-value gateways, like TrustCommerce,
# store and unstore need to be defined
#
# When passing a single-use token the :name option is required
def store(payment_method, options = {})
post = {}
add_address(post, options)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ def add_secure_profile_variables(post, options = {})
post[:operationType] = options[:operationType] || options[:operation] || secure_profile_action(:new)
post[:customerCode] = options[:billing_id] || options[:vault_id] || false
post[:status] = options[:status]

billing_address = options[:billing_address] || options[:address]
post[:trnCardOwner] = billing_address[:name]
end

def add_recurring_amount(post, money)
Expand Down