Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
Receiver sources polling fix. Closes #113
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten-stripe committed Jan 14, 2020
1 parent 49b0ee6 commit 8377498
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions public/javascripts/payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,12 +506,7 @@
start = null
) => {
start = start ? start : Date.now();
const endStates = [
'succeeded',
'processing',
'requires_payment_method',
'canceled',
];
const endStates = ['succeeded', 'processing', 'canceled'];
// Retrieve the PaymentIntent status from our server.
const rawResponse = await fetch(`payment_intents/${paymentIntent}/status`);
const response = await rawResponse.json();
Expand Down

0 comments on commit 8377498

Please sign in to comment.