Merge branch 'master' into release

This commit is contained in:
Abhinav-grd 2021-06-08 15:43:37 +05:30
commit e9f40a3f42

View file

@ -49,7 +49,11 @@ class billingService {
try {
const publishableKey = getStripePublishableKey();
const main = async () => {
this.stripe = await loadStripe(publishableKey);
try {
this.stripe = await loadStripe(publishableKey);
} catch (e) {
console.warn(e);
}
};
runningInBrowser() && checkConnectivity() && main();
} catch (e) {
@ -110,8 +114,8 @@ class billingService {
const { result } = response.data;
switch (result.status) {
case PAYMENT_INTENT_STATUS.SUCCESS:
// subscription updated successfully
// no-op required
// subscription updated successfully
// no-op required
break;
case PAYMENT_INTENT_STATUS.REQUIRE_PAYMENT_METHOD:
throw new Error(