lib/active_merchant/billing/gateways/bpoint.rb in activemerchant-1.95.0 vs lib/active_merchant/billing/gateways/bpoint.rb in activemerchant-1.96.0
- old
+ new
@@ -161,13 +161,13 @@
def payment_xml(xml, payment_type, amount, options)
xml.send('PaymentType', payment_type)
xml.send('TxnType', 'WEB_SHOP')
xml.send('BillerCode', options.fetch(:biller_code, ''))
- xml.send('MerchantReference', '')
- xml.send('CRN1', '')
- xml.send('CRN2', '')
- xml.send('CRN3', '')
+ xml.send('MerchantReference', options[:order_id]) if options[:order_id]
+ xml.send('CRN1', options[:crn1]) if options[:crn1]
+ xml.send('CRN2', options[:crn2]) if options[:crn2]
+ xml.send('CRN3', options[:crn3]) if options[:crn3]
xml.send('Amount', amount)
end
def credit_card_xml(xml, credit_card)
xml.send('CardNumber', credit_card.number)