Skip to content

Commit

Permalink
24841 display error when create payment fails (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
EPortman authored Dec 23, 2024
1 parent faac449 commit 6f48d4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "name-request",
"version": "5.5.16",
"version": "5.5.17",
"private": true,
"appName": "Name Request UI",
"sbcName": "SBC Common Components",
Expand Down
3 changes: 3 additions & 0 deletions app/src/mixins/payment-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ export class PaymentMixin extends Mixins(ActionMixin) {
if (err.errorResponse.response.data.businessInfo?.businessIdentifier) {
sessionStorage.setItem('BCREG-nrNum', err.errorResponse.response.data.businessInfo.businessIdentifier)
}
await errorModule.setAppError(
{ id: 'payment-required-error', error: 'Payment Required' } as ErrorI
)
throw err
}
// don't console.error - createPaymentRequest() already did that
Expand Down

0 comments on commit 6f48d4f

Please sign in to comment.