-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Error Handling and User Guidance for Payment Transactions - fixes
- Loading branch information
Showing
3 changed files
with
39 additions
and
23 deletions.
There are no files selected for viewing
51 changes: 31 additions & 20 deletions
51
projects/adyen-payments/src/lib/assets/translations/en/payment-errors.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,38 @@ | ||
export const paymentErrors = { | ||
"checkout": { | ||
"error": { | ||
"authorization": { | ||
"payment": { | ||
"refused": "The payment is REFUSED.", | ||
"detail": { | ||
"not": { | ||
"found": "The payment is REFUSED because the saved card is removed. Please try an other payment method." | ||
"adyenPlaceOrderError":{ | ||
"checkout": { | ||
"error": { | ||
"authorization": { | ||
"payment": { | ||
"refused": "The payment is REFUSED.", | ||
"detail": { | ||
"not": { | ||
"found": "The payment is REFUSED because the saved card is removed. Please try an other payment method." | ||
} | ||
} | ||
}, | ||
"restricted": { | ||
"card": "The card is restricted." | ||
}, | ||
"failed": "There was an internal technical error, please choose any other payment method to place your order. If the error persist, please contact us.", | ||
"cvc": { | ||
"declined": "The payment is REFUSED. Please check your Card details." | ||
}, | ||
"pos": { | ||
"configuration": "Error reaching POS terminal. Check the terminal connection/configuration and try again." | ||
}, | ||
"transaction": { | ||
"not": { | ||
"permitted": "The transaction is not permitted." | ||
} | ||
} | ||
}, | ||
"paymentethod": { | ||
"formentry": { | ||
"invalid": "Please check your payment details are correct or provide a different payment method." | ||
} | ||
} | ||
}, | ||
"restricted": { | ||
"card": "The card is restricted." | ||
}, | ||
"cvc": { | ||
"declined": "The payment is REFUSED. Please check your Card details." | ||
}, | ||
"transaction": { | ||
"not": { | ||
"permitted": "The transaction is not permitted." | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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