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 1ac98fa commit d3ab78b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/recurly/amazon/amazon-pay.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ class AmazonPay extends Emitter {
}

attach () {
const defaultEventName = 'amazon-pay';
let gatewayCode = this.options.gatewayCode
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 d3ab78b

Please sign in to comment.