diff --git a/apps/web/components/PayPal/PayPalExpressButton.vue b/apps/web/components/PayPal/PayPalExpressButton.vue index b36c1be37..76c574b0e 100644 --- a/apps/web/components/PayPal/PayPalExpressButton.vue +++ b/apps/web/components/PayPal/PayPalExpressButton.vue @@ -22,6 +22,7 @@ const localePath = useLocalePath(); const emits = defineEmits<{ (event: 'validation-callback', callback: PayPalAddToCartCallback): Promise; + (event: 'on-approved'): void; }>(); const props = defineProps(); @@ -68,6 +69,8 @@ const onValidationCallback = async () => { const onApprove = async (data: OnApproveData) => { const result = await approveOrder(data.orderID, data.payerID ?? ''); + emits('on-approved'); + if ((props.type === TypeCartPreview || props.type === TypeSingleItem) && result?.url) navigateTo(localePath(paths.readonlyCheckout + `/?payerId=${data.payerID}&orderId=${data.orderID}`)); diff --git a/apps/web/components/QuickCheckout/QuickCheckout.vue b/apps/web/components/QuickCheckout/QuickCheckout.vue index e14a62b9f..d6c039fca 100644 --- a/apps/web/components/QuickCheckout/QuickCheckout.vue +++ b/apps/web/components/QuickCheckout/QuickCheckout.vue @@ -76,7 +76,7 @@ class="w-full mb-3" variant="secondary" > - {{ $t('quickCheckout.checkYourCart') }} + {{ t('quickCheckout.checkYourCart') }} - {{ $t('goToCheckout') }} + {{ t('goToCheckout') }} - +