Skip to content

Commit

Permalink
pass gateway_code to choose if multiple Amazon gateway instances
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Anderson committed Nov 13, 2023
1 parent 0d06ebd commit 0c16218
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 @@ -70,7 +70,8 @@ class AmazonPay extends Emitter {
}

attach () {
const defaultEventName = 'amazon-pay';
const defaultEventName = 'amazon-pay';
let gatewayCode = this.options.gatewayCode || '';
this.frame = this.recurly.Frame({
path: `/amazon_pay/start?region=${this.region}&gateway_code=${gatewayCode}`,
type: Frame.TYPES.WINDOW,
Expand Down

0 comments on commit 0c16218

Please sign in to comment.