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))