lib/active_merchant/billing/gateways/card_stream.rb in activemerchant-1.62.0 vs lib/active_merchant/billing/gateways/card_stream.rb in activemerchant-1.63.0
- old
+ new
@@ -26,10 +26,11 @@
"ICK" => "352",
"JPY" => "392",
"MXN" => "484",
"NOK" => "578",
"NZD" => "554",
+ "PEN" => "604",
"SEK" => "752",
"SGD" => "702",
"USD" => "840",
}
@@ -152,9 +153,11 @@
end
def add_invoice(post, credit_card_or_reference, money, options)
add_pair(post, :transactionUnique, options[:order_id], :required => true)
add_pair(post, :orderRef, options[:description] || options[:order_id], :required => true)
+ add_pair(post, :statementNarrative1, options[:merchant_name]) if options[:merchant_name]
+ add_pair(post, :statementNarrative2, options[:dynamic_descriptor]) if options[:dynamic_descriptor]
if credit_card_or_reference.respond_to?(:number)
if ['american_express', 'diners_club'].include?(card_brand(credit_card_or_reference).to_s)
add_pair(post, :item1Quantity, 1)
add_pair(post, :item1Description, (options[:description] || options[:order_id]).slice(0, 15))
add_pair(post, :item1GrossValue, amount(money))