Skip to content

Commit

Permalink
add region to request
Browse files Browse the repository at this point in the history
  • Loading branch information
gilv93 committed Sep 15, 2023
1 parent b2a8b6f commit 90e36ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/recurly/amazon/amazon-pay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 90e36ca

Please sign in to comment.