lib/active_merchant/billing/gateways/nexio.rb in nexio_activemerchant-0.2.3 vs lib/active_merchant/billing/gateways/nexio.rb in nexio_activemerchant-0.2.4
- old
+ new
@@ -24,9 +24,10 @@
super
end
def generate_token(options = {})
post = build_payload(options)
+ post[:data][:allowedCardTypes] = %w(amex discover jcb mastercard visa)
add_currency(post, options)
add_order_data(post, options)
add_card_data(post, options)
resp = commit('token', post)
return unless resp.success?