lib/active_merchant/billing/gateways/ebanx.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/ebanx.rb in activemerchant-1.106.0
- old
+ new
@@ -169,10 +169,10 @@
end
def add_invoice(post, money, options)
post[:payment][:amount_total] = amount(money)
post[:payment][:currency_code] = (options[:currency] || currency(money))
- post[:payment][:merchant_payment_code] = options[:order_id]
+ post[:payment][:merchant_payment_code] = Digest::MD5.hexdigest(options[:order_id])
post[:payment][:instalments] = options[:instalments] || 1
end
def add_card_or_token(post, payment)
payment, brand = payment.split('|') if payment.is_a?(String)