Skip to content

Commit

Permalink
Beanstream: Pass card owner when storing tokenized cards (#3007)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdunae authored and filipebarcos committed Aug 7, 2019
1 parent 0077a59 commit d18ab77
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
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

0 comments on commit d18ab77

Please sign in to comment.