Stripe integration fix #6850
1 changed files with 5 additions and 0 deletions
|
@ -188,10 +188,15 @@ class SettingsStripeCard extends React.Component<Props, State> {
|
|||
// instantiate stripe elements
|
||||
setupStripe();
|
||||
});
|
||||
// 500 error from the backend being down
|
||||
} else if (error === 'internal_apis_down') {
|
||||
var displayString = 'There was an error from the server, please let support know';
|
||||
doToast({ message: displayString, isError: true });
|
||||
} else {
|
||||
// probably an error from stripe
|
||||
var displayString = 'There was an error getting your card setup, please let support know';
|
||||
doToast({ message: displayString, isError: true });
|
||||
|
||||
console.log('Unseen before error');
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue