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