lib/active_merchant/billing/gateways/barclaycard_smartpay.rb in activemerchant-1.74.0 vs lib/active_merchant/billing/gateways/barclaycard_smartpay.rb in activemerchant-1.75.0
- old
+ new
@@ -58,9 +58,13 @@
def credit(money, creditcard, options = {})
post = payment_request(money, options)
post[:amount] = amount_hash(money, options[:currency])
post[:card] = credit_card_hash(creditcard)
+ post[:dateOfBirth] = options[:date_of_birth] if options[:date_of_birth]
+ post[:entityType] = options[:entity_type] if options[:entity_type]
+ post[:nationality] = options[:nationality] if options[:nationality]
+ post[:shopperName] = options[:shopper_name] if options[:shopper_name]
commit('refundWithData', post)
end
def void(identification, options = {})