-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SSP-2840] The e-shop will not allow you to repeat the payment if the…
… current payment is in the verification process.
- Loading branch information
1 parent
3748511
commit 7be1f89
Showing
18 changed files
with
171 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
storefront/components/Pages/Order/PaymentConfirmation/PaymentInProcess.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { ArrowIcon } from 'components/Basic/Icon/ArrowIcon'; | ||
import { HeartIcon } from 'components/Basic/Icon/HeartIcon'; | ||
import { Webline } from 'components/Layout/Webline/Webline'; | ||
import { useDomainConfig } from 'components/providers/DomainConfigProvider'; | ||
import { GtmPageType } from 'gtm/enums/GtmPageType'; | ||
import { useGtmStaticPageViewEvent } from 'gtm/factories/useGtmStaticPageViewEvent'; | ||
import { useGtmPageViewEvent } from 'gtm/utils/pageViewEvents/useGtmPageViewEvent'; | ||
import useTranslation from 'next-translate/useTranslation'; | ||
import { getInternationalizedStaticUrls } from 'utils/staticUrls/getInternationalizedStaticUrls'; | ||
|
||
type PaymentInProcessProps = { | ||
orderUrlHash: string; | ||
}; | ||
|
||
export const PaymentInProcess: FC<PaymentInProcessProps> = ({ orderUrlHash }) => { | ||
const { t } = useTranslation(); | ||
const { url } = useDomainConfig(); | ||
const [orderDetailUrl] = getInternationalizedStaticUrls( | ||
[{ url: '/order-detail/:urlHash', param: orderUrlHash }], | ||
url, | ||
); | ||
const gtmStaticPageViewEvent = useGtmStaticPageViewEvent(GtmPageType.payment_in_process); | ||
useGtmPageViewEvent(gtmStaticPageViewEvent); | ||
|
||
return ( | ||
<Webline className="mt-8 lg:mt-10 vl:mt-20"> | ||
<div className="flex items-center gap-6"> | ||
<HeartIcon className="text-green h-20 w-20" /> | ||
<h1 className="mb-0"> | ||
{t('The payment is being processed, you can check the status on the order detail page')} | ||
</h1> | ||
</div> | ||
<a className="w-fit" href={orderDetailUrl}> | ||
{t('Show order detail')} | ||
<ArrowIcon className="h-3 w-3 -rotate-90" /> | ||
</a> | ||
</Webline> | ||
); | ||
}; |
Oops, something went wrong.