Stripe integration fix #6850
4 changed files with 6 additions and 13 deletions
|
@ -263,7 +263,6 @@ function WalletTipAmountSelector(props: Props) {
|
|||
// </div>
|
||||
// </>
|
||||
}
|
||||
className="form-field--price-amount"
|
||||
error={tipError}
|
||||
min="0"
|
||||
step="any"
|
||||
|
|
|
@ -133,8 +133,6 @@ class StripeAccountConnection extends React.Component<Props, State> {
|
|||
that.setState({
|
||||
accountTransactions: accountListResponse.reverse(),
|
||||
});
|
||||
|
||||
console.log(accountListResponse);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -170,7 +168,7 @@ class StripeAccountConnection extends React.Component<Props, State> {
|
|||
getAndSetAccountLink(true);
|
||||
} else {
|
||||
// probably an error from stripe
|
||||
var displayString = 'There was an error getting your account setup, please let support know';
|
||||
const displayString = 'There was an error getting your account setup, please let support know';
|
||||
doToast({ message: displayString, isError: true });
|
||||
// not an error from Beamer, throw it
|
||||
throw new Error(error);
|
||||
|
|
|
@ -181,8 +181,6 @@ class SettingsStripeCard extends React.Component<Props, State> {
|
|||
},
|
||||
'post'
|
||||
).then((customerSetupResponse) => {
|
||||
console.log(customerSetupResponse);
|
||||
|
||||
clientSecret = customerSetupResponse.client_secret;
|
||||
|
||||
// instantiate stripe elements
|
||||
|
@ -190,14 +188,12 @@ class SettingsStripeCard extends React.Component<Props, State> {
|
|||
});
|
||||
// 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';
|
||||
const 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';
|
||||
const displayString = 'There was an error getting your card setup, please let support know';
|
||||
doToast({ message: displayString, isError: true });
|
||||
|
||||
console.log('Unseen before error');
|
||||
}
|
||||
});
|
||||
}, 250);
|
||||
|
|
|
@ -404,9 +404,9 @@ fieldset-group {
|
|||
}
|
||||
}
|
||||
|
||||
//.form-field--price-amount {
|
||||
// max-width: 6em;
|
||||
//}
|
||||
.form-field--price-amount {
|
||||
max-width: 6em;
|
||||
}
|
||||
|
||||
.form-field--price-amount--auto {
|
||||
width: auto;
|
||||
|
|
Loading…
Reference in a new issue