...
Create a new keys to translate the error message:
Code Block language json { ... "error.payment.2.005.title": "Purchase cancelled", "error.payment.2.005.cta": "Go Back to Checkout", "error.payment.2.005": "Your purchase has been successfully cancelled.", ... }
...
Change error validation
Info | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
It will be created a temporary feature flag: enable-cancellation-error-modal-on-payment-link After the stories activation in prod, the feature flags will be removed.
|
Change the validation on
isCanceledOperation
path:
intl-whitelabel-app/workspaces/frontend/src/hooks/use-paycomet-pay-link-popup/utils.ts
before:
Code Block language typescript export const isCanceledOperation = (e: MessageEvent) => { const isCanceledOperation = e.data && typeof e.data === 'object' && Object.values(CanceledCodeOperationType).includes(e.data?.body?.code); return !!(e.data === ClosedWindowType.CLOSED || isCancelation); };
after:
Code Block language typescript export const isCanceledOperation = (e: MessageEvent) => { const isCancelation = e.data && typeof e.data === 'object' && <FF_FLAG> && Object.values(CanceledCodeOperationType).includes(e.data?.body?.code); return !!(e.data === ClosedWindowType.CLOSED || isCancelation); };
...
Info |
---|
Describe any additional cost this solution may imply. |
🎛️ Configuration
Info |
---|
It will be created a temporary feature flag: enable-cancellation-error-modal-on-payment-link After the stories activation in prod, the feature flags will be removed. |
📈 Metrics
N/A
🗓️ Delivery Plan
...