Migrate billing from Paddle to Lemon Squeezy
This commit is contained in:
@@ -25,9 +25,9 @@ const GiftSuccess: React.FC = () => {
|
||||
React.useEffect(() => {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
const checkoutId = params.get('checkout_id') || sessionStorage.getItem('gift_checkout_id');
|
||||
const transactionId = params.get('transaction_id');
|
||||
const orderId = params.get('order_id');
|
||||
|
||||
fetchGiftVoucherByCheckout(checkoutId || undefined, transactionId || undefined)
|
||||
fetchGiftVoucherByCheckout(checkoutId || undefined, orderId || undefined)
|
||||
.then((data) => {
|
||||
if (data) {
|
||||
setVoucher(data);
|
||||
|
||||
Reference in New Issue
Block a user