From 90e36ca1a0179b470a5e8c0fb5cef5d94e83b3cb Mon Sep 17 00:00:00 2001 From: gilv93 Date: Fri, 15 Sep 2023 12:36:03 -0700 Subject: [PATCH] add region to request --- lib/recurly/amazon/amazon-pay.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/recurly/amazon/amazon-pay.js b/lib/recurly/amazon/amazon-pay.js index c95950642..bd938895f 100644 --- a/lib/recurly/amazon/amazon-pay.js +++ b/lib/recurly/amazon/amazon-pay.js @@ -10,10 +10,11 @@ class AmazonPay extends Emitter { attach (element) { this.parent = element; + this.region = this.options?.region || 'us'; const defaultEventName = 'amazon-pay'; this.frame = this.recurly.Frame({ - path: '/amazon_pay/start', + path: `/amazon_pay/start?region=${this.region}`, type: Frame.TYPES.WINDOW, defaultEventName }).on('error', cause => console.log(cause))