Skip to content

Commit

Permalink
Added Douglas Cancel PR
Browse files Browse the repository at this point in the history
  • Loading branch information
arzitney authored and gilv93 committed Oct 2, 2023
1 parent 4e923c3 commit e081825
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/recurly/amazon/amazon-pay.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ class AmazonPay extends Emitter {
path: `/amazon_pay/start?region=${this.region}`,
type: Frame.TYPES.WINDOW,
defaultEventName
}).on('error', cause => console.log(cause))
.on('done', results => {
this.emit('token', results);
});
}).on('error', cause => this.emit('error', cause)) // Emitted by js/v1/amazon_pay/cancel
.on('close', () => this.emit('error', 'closed')) // Emitted by RJS Frame when the window is manually closed
.on('done', results => this.emit('token', results)); // Emitted by js/v1/amazon_pay/finish
}

setLocaleAndCurrency () {
Expand Down

0 comments on commit e081825

Please sign in to comment.