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 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
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
= ActiveMerchant CHANGELOG

== HEAD
* Bambora formerly Beanstream: Pass card owner when storing tokenized cards [#3006]
* CardConnect: Move domain from gateway specific to gateway field [hdeters] #3283
* Braintree Blue: Support for stored credentials [hdeters] #3286
* Realex: Re-implement credit as general credit [leila-alderman] #3280
Expand Down Expand Up @@ -197,7 +198,6 @@
* Forte: Allow void on capture [nfarve] #3059

== Version 1.86.0 (October 26, 2018)
* UsaEpayTransaction: Support UMcheckformat option for echecks [dtykocki] #3002
* Global Collect: handle internal server errors [molbrown] #3005
* Barclaycard Smartpay: allow third-party payouts for credits [bpollack] #3009
* RuboCop: AlignHash [nfarve] #3004
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