Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [IOBP-309, IOBP-312] Add error handling for payment verification and activation requests #5378

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7436b0b
Merge branch 'master' into IOBP-309-gestione-errori-in-fase-di-verifi…
mastro993 Jan 3, 2024
8699667
fix: header
mastro993 Jan 2, 2024
a9ac6dd
feat: failure handling in payment verification
mastro993 Jan 3, 2024
304e965
fix: failure handling for generic errors
mastro993 Jan 4, 2024
61c3304
chore: failure handling wip
mastro993 Jan 4, 2024
ed0b4cc
chore: locales
mastro993 Jan 4, 2024
3991bd8
feat: support bottom sheet
mastro993 Jan 4, 2024
a315c81
chore: locale keys
mastro993 Jan 4, 2024
435bcad
feat: copy all button
mastro993 Jan 5, 2024
e080c9f
chore: ignore prettier for better visual formatting
mastro993 Jan 5, 2024
63c086c
chore: add failure handling for activation request
mastro993 Jan 8, 2024
7eb7a95
feat: zendesk support chat
mastro993 Jan 9, 2024
5321bbe
Merge branch 'master' into IOBP-309-gestione-errori-in-fase-di-verifi…
mastro993 Jan 9, 2024
48c6c84
Merge branch 'master' into IOBP-309-gestione-errori-in-fase-di-verifi…
mastro993 Jan 10, 2024
f67d8ea
chore: added ticket number in TODO comment
mastro993 Jan 10, 2024
5babc0a
fix: `DOMAIN_UNKNOWN` failure screen
mastro993 Jan 10, 2024
413cedd
Merge branch 'master' into IOBP-309-gestione-errori-in-fase-di-verifi…
Hantex9 Jan 11, 2024
6ee7731
Merge branch 'master' into IOBP-309-gestione-errori-in-fase-di-verifi…
Hantex9 Jan 11, 2024
141c5f7
fix: `OperationResultScreenContent` secondary button
mastro993 Jan 11, 2024
bce65ad
chore: moved phone number in const
mastro993 Jan 11, 2024
6be6ae9
chroe: temporarily disable phone number
mastro993 Jan 11, 2024
83c6451
fix: props
mastro993 Jan 11, 2024
3cd30c9
Merge branch 'master' into IOBP-309-gestione-errori-in-fase-di-verifi…
Hantex9 Jan 11, 2024
5dc9500
Merge branch 'master' into IOBP-309-gestione-errori-in-fase-di-verifi…
mastro993 Jan 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions locales/en/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1681,6 +1681,41 @@ wallet:
default: Default
amount: Per importo
name: Per nome
failure:
PAYMENT_UNAVAILABLE:
title: "C’è un problema tecnico con questo avviso"
PAYMENT_UNKNOWN:
title: "I dati dell’avviso non sono corretti"
DOMAIN_UNKNOWN:
title: "L’Ente Creditore sta avendo problemi nella risposta"
subtitle: "Riprova più tardi. Se il problema persiste, contatta l’assistenza."
PAYMENT_ONGOING:
title: "C’è già un pagamento in corso, riprova più tardi"
subtitle: "Se il problema persiste, puoi aprire una segnalazione."
PAYMENT_EXPIRED:
title: "L’avviso è scaduto e non è più possibile pagarlo"
subtitle: "Contatta l’Ente per maggiori informazioni."
PAYMENT_CANCELED:
title: "L’Ente Creditore ha revocato questo avviso"
subtitle: "Contatta l’Ente per maggiori informazioni."
PAYMENT_DUPLICATED:
title: "Questo avviso è stato già pagato!"
GENERIC_ERROR:
title: "Si è verificato un errore imprevisto"
subtitle: "Riprova, oppure contatta l’assistenza."
PAA_PAGAMENTO_SCONOSCIUTO:
title: "Non riusciamo a trovare l’avviso"
subtitle: "L’avviso potrebbe essere stato già pagato. Per ricevere assistenza, contatta l’Ente Creditore che lo ha emesso."
support:
button: "Contatta l'assistenza"
supportTitle: Contatta l'assistenza
phone: Chiama {{phoneNumber}}
chat: Chiedi aiuto in chat
additionalDataTitle: "Dati aggiuntivi"
copyAll: Copia tutti
errorCode: Codice errore
noticeNumber: Codice avviso
entityCode: Codice Fiscale Ente
outcome:
cancelled:
title: L’operazione è stata annullata
Expand Down
35 changes: 35 additions & 0 deletions locales/it/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1681,6 +1681,41 @@ wallet:
default: Default
amount: Per importo
name: Per nome
failure:
PAYMENT_UNAVAILABLE:
title: "C’è un problema tecnico con questo avviso"
PAYMENT_UNKNOWN:
title: "I dati dell’avviso non sono corretti"
DOMAIN_UNKNOWN:
title: "L’Ente Creditore sta avendo problemi nella risposta"
subtitle: "Riprova più tardi. Se il problema persiste, contatta l’assistenza."
PAYMENT_ONGOING:
title: "C’è già un pagamento in corso, riprova più tardi"
subtitle: "Se il problema persiste, puoi aprire una segnalazione."
PAYMENT_EXPIRED:
title: "L’avviso è scaduto e non è più possibile pagarlo"
subtitle: "Contatta l’Ente per maggiori informazioni."
PAYMENT_CANCELED:
title: "L’Ente Creditore ha revocato questo avviso"
subtitle: "Contatta l’Ente per maggiori informazioni."
PAYMENT_DUPLICATED:
title: "Questo avviso è stato già pagato!"
GENERIC_ERROR:
title: "Si è verificato un errore imprevisto"
subtitle: "Riprova, oppure contatta l’assistenza."
PAA_PAGAMENTO_SCONOSCIUTO:
title: "Non riusciamo a trovare l’avviso"
subtitle: "L’avviso potrebbe essere stato già pagato. Per ricevere assistenza, contatta l’Ente Creditore che lo ha emesso."
support:
button: "Contatta l'assistenza"
supportTitle: Contatta l'assistenza
phone: Chiama {{phoneNumber}}
chat: Chiedi aiuto in chat
additionalDataTitle: "Dati aggiuntivi"
copyAll: Copia tutti
errorCode: Codice errore
noticeNumber: Codice avviso
entityCode: Codice Fiscale Ente
outcome:
cancelled:
title: L’operazione è stata annullata
Expand Down
4 changes: 2 additions & 2 deletions ts/components/screens/OperationResultScreenContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ const OperationResultScreenContent = ({
</View>
)}
{secondaryAction && (
<>
<View style={IOStyles.alignCenter}>
<VSpacer size={24} />
<View>
<ButtonLink {...secondaryAction} />
</View>
</>
</View>
)}
{React.isValidElement(children) && React.cloneElement(children)}
</ScrollView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -705,92 +705,100 @@ exports[`OperationResultScreenContent should match the snapshot with default pro
<View
style={
Object {
"height": 24,
"alignItems": "center",
}
}
/>
<View>
>
<View
accessibilityLabel="Secondary Action"
accessibilityRole="button"
accessibilityState={
Object {
"disabled": false,
}
}
accessible={true}
collapsable={false}
focusable={true}
hitSlop={
Object {
"bottom": 14,
"left": 24,
"right": 24,
"top": 14,
}
}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
onTouchEnd={[Function]}
style={
Object {
"alignSelf": "flex-start",
"height": 24,
}
}
>
/>
<View>
<View
accessibilityLabel="Secondary Action"
accessibilityRole="button"
accessibilityState={
Object {
"disabled": false,
}
}
accessible={true}
collapsable={false}
focusable={true}
hitSlop={
Object {
"bottom": 14,
"left": 24,
"right": 24,
"top": 14,
}
}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
onTouchEnd={[Function]}
style={
Array [
Object {
"alignItems": "center",
"elevation": 0,
"flexDirection": "row",
"justifyContent": "center",
"textAlignVertical": "center",
},
false,
Object {},
Object {
"transform": Array [
Object {
"scale": undefined,
},
],
},
]
Object {
"alignSelf": "flex-start",
}
}
>
<Text
allowFontScaling={false}
ellipsizeMode="tail"
maxFontSizeMultiplier={1.3}
numberOfLines={1}
<View
style={
Array [
Object {
"fontFamily": "Titillium Web",
"fontSize": 16,
"fontStyle": "normal",
"fontWeight": "700",
},
Object {
"color": "#0073E6",
"alignItems": "center",
"elevation": 0,
"flexDirection": "row",
"justifyContent": "center",
"textAlignVertical": "center",
},
false,
Object {},
Object {
"color": undefined,
"transform": Array [
Object {
"scale": undefined,
},
],
},
]
}
>
Secondary Action
</Text>
<Text
allowFontScaling={false}
ellipsizeMode="tail"
maxFontSizeMultiplier={1.3}
numberOfLines={1}
style={
Array [
Object {
"fontFamily": "Titillium Web",
"fontSize": 16,
"fontStyle": "normal",
"fontWeight": "700",
},
Object {
"color": "#0073E6",
},
Object {
"color": undefined,
},
]
}
>
Secondary Action
</Text>
</View>
</View>
</View>
</View>
Expand Down
Loading
Loading