Stripe integration fix #6850

Merged
jessopb merged 25 commits from stripe-integration-fix into master 2021-08-11 22:58:56 +02:00
4 changed files with 6 additions and 13 deletions
Showing only changes of commit 8f419fea67 - Show all commits

View file

@ -263,7 +263,6 @@ function WalletTipAmountSelector(props: Props) {
// </div>
// </>
}
className="form-field--price-amount"
error={tipError}
min="0"
step="any"

View file

@ -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);

View file

@ -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);

View file

@ -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;