-
Notifications
You must be signed in to change notification settings - Fork 4
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
[IOBP-309,IOBP-312] Add ability to generate failure for payment verification and activation requests #335
[IOBP-309,IOBP-312] Add ability to generate failure for payment verification and activation requests #335
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #335 +/- ##
==========================================
- Coverage 67.73% 67.52% -0.22%
==========================================
Files 154 156 +2
Lines 5232 5272 +40
Branches 608 615 +7
==========================================
+ Hits 3544 3560 +16
- Misses 1687 1711 +24
Partials 1 1
Continue to review full report in Codecov by Sentry.
|
…ca-avviso-integrazione-ecommerce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…n and activation requests (#5378) ## Short description This PR adds the handling of failures during the verification and activation requests for a payment. ## List of changes proposed in this pull request - Added `WalletPaymentFailure` type - Added `WalletPaymentFailureDetail` component to display payment failures - Added `usePaymentFailureSupportModal` hook to display the payment support request bottom sheet modal - Added required locale keys ## How to test Using the io-dev-api-server, checkout this branch pagopa/io-dev-api-server#335 and add the following to the config.json: ```json "features": { "wallet": { "verificationFailure": { "faultCodeCategory": "PAYMENT_UNAVAILABLE", "faultCodeDetail":"PPT_PSP_SCONOSCIUTO" } } } ``` With the IO app, navigate to the wallet payment playground and check that the failure is correctly displayed. ## Preview https://github.com/pagopa/io-app/assets/6160324/03ec83b8-68c5-4d77-83a1-3bfd7dd8afcd --------- Co-authored-by: Alessandro Izzo <[email protected]>
Short description
This PR adds the ability to force a failure during the payment verification and activation request.
How to test
To simulate a failure during the verification request, add the following configuration in your config.json :
Check that the
GET /payment-requests/:rpt_id
endpoint returns a failureTo simulate a failure during the activation request, add the following configuration in your config.json :
Check that the
POST /transaction
endpoint returns a failure