Skip to content

Commit

Permalink
EBANX: Send original order id as merchant_payment_code metadata
Browse files Browse the repository at this point in the history
Unit:
17 tests, 59 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote:
24 tests, 67 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

All unit tests:
4503 tests, 71977 assertions, 0 failures, 0 errors, 0 pendings, 2 omissions, 0 notifications
100% passed

Closes #3637
  • Loading branch information
miguelxpn authored and chinhle23-zz committed May 19, 2020
1 parent d6231ca commit 448ab9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* CyberSource: Pass stored credentials with purchase [curiousepic] #3636
* Mercado Pago: Add payment_method_option_id field [schwarzgeist] #3635
* Stripe: Provide error when attempting an authorize with ACH [britth] #3633
* EBANX: Send original order id as merchant_payment_code metadata [miguelxpn] #3637

== Version 1.107.3 (May 8, 2020)
* Realex: Ignore IPv6 unsupported addresses [elfassy] #3622
Expand Down
2 changes: 2 additions & 0 deletions lib/active_merchant/billing/gateways/ebanx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ def payment_details(payment)
def add_additional_data(post, options)
post[:device_id] = options[:device_id] if options[:device_id]
post[:metadata] = options[:metadata] if options[:metadata]
post[:metadata] = {} if post[:metadata].nil?
post[:metadata][:merchant_payment_code] = options[:order_id] if options[:order_id]
end

def parse(body)
Expand Down

0 comments on commit 448ab9d

Please sign in to comment.