...
User Role | Description |
---|---|
User | User will be placing successful orders on Whitelabel |
Developer user | User responsible for: Build and run the local environment and set the mocks |
Analytics user | User responsible for checking the events on mParticle/Amplitude. |
Whitelabel
General configs and pre-
...
conditions:
Feature flags Intl Platform (backend):
disable-paycomet-pre-auth: this FF need needs to be enabled with these configs:
...
replace the existing code from line 238 to by the 261 by the code below:
Code Block |
---|
export const getRbiErrorTranslation = ({ errorCode, errorTranslation, defaultTranslationId, formatMessage, }: IRbiErrorTranslation) => { const parsedErrorCodes = errorCode ? extractRbiErrorCodes(errorCode) : []; const foundTranslation = parsedErrorCodes.find(code => { const key = errorTranslation ? `error.${code}.${errorTranslation}` : `error.${code}`; return formatMessageMock({ id: key as TLocalizationKey }) !== key; }); const getFormattedMessage = (translation: string) => formatMessageMock({ id: errorTranslation ? (`error.${translation}.${errorTranslation}` as TLocalizationKey) : (`error.${translation}` as TLocalizationKey), }); return foundTranslation ? getFormattedMessage(foundTranslation) : formatMessageMock({ id: defaultTranslationId as TLocalizationKey }); }; |
...