Commit hotfix

Stephen Paul Weber created

Change summary

config.ru | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

Detailed changes

config.ru 🔗

@@ -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?