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 851cad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/recurly/amazon/amazon-pay.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class AmazonPay extends Emitter {

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

Please sign in to comment.