mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
logs, credits
This commit is contained in:
@@ -255,6 +255,7 @@
|
||||
console.log('Environment is not Cloud or Stripe public key not deteted');
|
||||
console.log('isCloud:', isCloud);
|
||||
console.log('hasStripePublicKey:', hasStripePublicKey);
|
||||
console.log('Stripe key:', VARS.STRIPE_PUBLIC_KEY);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
};
|
||||
|
||||
async function validateCoupon() {
|
||||
if (couponData?.status === 'active') return;
|
||||
try {
|
||||
const response = await sdk.forConsole.billing.getCoupon(coupon);
|
||||
couponData = response;
|
||||
@@ -21,7 +22,7 @@
|
||||
console.log('test');
|
||||
couponData.code = coupon;
|
||||
couponData.status = 'error';
|
||||
return;
|
||||
throw new Error(`${coupon} is not a valid promo code`);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user