-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [IOBP-690] Add pre-selection psp logic for payment methods wit…
…h pspId indicated (#5838) ## Short description This PR adds automatic pre-selected PSP selection logic in the past (in this case useful for PayPal fast payment method). If the get user wallets returns us a wallet with an indicated pspId, it means that in the calculateFees if that method is selected, only that id needs to be sent to the `idPspList`. ## List of changes proposed in this pull request - Added a logic to select the pspId from the user wallet if present and send it to the calculateFees request action ## How to test - Checkout this dev-server PR: pagopa/io-dev-api-server#386 - If you select "Pagamento veloce con PayPal" from the payment method selection list, you should be able to navigate directly to the payment confirm screen. ## Preview https://github.com/pagopa/io-app/assets/34343582/feb88ba2-2559-4888-8d86-660eb1800882
- Loading branch information
Showing
3 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters