~singpolyma/jmp-pay

e275d7b124cbd179c43c58f241d229d6fef212ee — Stephen Paul Weber 27 days ago 6e4801c
Commit hotfix
1 files changed, 9 insertions(+), 1 deletions(-)

M config.ru
M config.ru => config.ru +9 -1
@@ 134,10 134,18 @@ class CreditCardGateway
		end
	end

	def payment_method_create_options
		options = { verify_card: true, make_default: true }
		if merchant_account
			options[:verification_merchant_account_id] = merchant_account.to_s
		end
		options
	end

	def default_method(nonce)
		result = antifraud || @gateway.payment_method.create(
			customer_id: customer_id, payment_method_nonce: nonce,
			options: { verify_card: true, make_default: true }
			options: payment_method_create_options
		)

		return result if result.success?