Browse Source

[web] add translated error messages to Stripe custom checkout (#28730)

GitOrigin-RevId: 06a1e15decdb5f557e68f73cba2ed5ad37fecdac
Kristina 1 năm trước cách đây
mục cha
commit
9e3aba0b6f

+ 2 - 0
services/web/frontend/extracted-translations.json

@@ -1239,7 +1239,9 @@
   "payment_error_3ds_failed": "",
   "payment_error_generic": "",
   "payment_error_intermittent_error": "",
+  "payment_error_invalid_payment_method": "",
   "payment_error_update_payment_method": "",
+  "payment_error_update_payment_method_checkout": "",
   "payment_provider_unreachable_error": "",
   "payment_summary": "",
   "pdf": "",

+ 2 - 0
services/web/locales/en.json

@@ -1624,7 +1624,9 @@
   "payment_error_3ds_failed": "We couldn’t complete your payment because authentication wasn’t successful. Please try again or choose a different payment method. If the problem continues please <0>contact us</0>.",
   "payment_error_generic": "Sorry, something went wrong. Please try again. If the problem continues please <0>contact us</0>.",
   "payment_error_intermittent_error": "We were unable to process your payment. Please try again later or <0>contact us</0> for assistance.",
+  "payment_error_invalid_payment_method": "We couldn’t process your payment because your payment details appear to be invalid. Please check the information you entered and try again. If the problem continues, please try a different payment method or <0>contact us</0>.",
   "payment_error_update_payment_method": "Your payment was declined. Please <0>update your billing information</0> and try again.",
+  "payment_error_update_payment_method_checkout": "Your payment was declined. Please update your billing information and try again.",
   "payment_method_accepted": "__paymentMethod__ accepted",
   "payment_provider_unreachable_error": "Sorry, there was an error talking to our payment provider. Please try again in a few moments.\nIf you are using any ad or script blocking extensions in your browser, you may need to temporarily disable them.",
   "payment_summary": "Payment summary",