lib/active_merchant/billing/gateways/ebanx.rb in activemerchant-1.107.3 vs lib/active_merchant/billing/gateways/ebanx.rb in activemerchant-1.107.4
- old
+ new
@@ -210,9 +210,11 @@
end
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)
JSON.parse(body)
end