working with promo code

This commit is contained in:
sharifcse57
2023-05-10 08:58:31 +06:00
parent 84e7db62a4
commit 3b55675933
@@ -370,7 +370,10 @@
}
};
this.isLoading = true;
return fetch('https://as1.api.voucherify.io/v1/vouchers/dummy2/redemption', {
let url = `https://as1.api.voucherify.io/v1/vouchers/${this.promoCode}/redemption`;
return fetch(url, {
method: 'POST',
responseType: 'json',
body: promoRequestObj,