Skip to content

Commit

Permalink
chore(web): adjust timing in portal
Browse files Browse the repository at this point in the history
  • Loading branch information
rin-yato committed Oct 11, 2024
1 parent 2f2c14e commit f309b15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/api/src/task/webhook/tasker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ export class WebhookTasker implements Tasker {
const response = await ky
.post(job.data.webhookUrl, {
retry: 0,
redirect: "error",
redirect: "manual",
json: { checkoutId: job.data.checkoutId },
throwHttpErrors: false,
})
.then(ok)
.catch(err);
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/route/portal/$checkoutId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function CheckoutPage() {
toast.info("Unable to process your payment.", {
id: toastIdRef.current,
richColors: true,
duration: 10_000, // 10s
duration: 34_000, // 34s
});
setIsProcessing(true);
}, 5000);
Expand All @@ -90,7 +90,7 @@ function CheckoutPage() {
) {
const redirectUrl = data.checkout.redirectUrl;
const validURL = URL.canParse(redirectUrl);
const delay = 2600;
const delay = 3300;

toast.success("Payment successful!", {
id: toastIdRef.current,
Expand Down

0 comments on commit f309b15

Please sign in to comment.