Viewing 1 replies (of 1 total)
  • Plugin Author David Parker

    (@dlparker1005)

    Hello @naza1111,

    It is not possible to translate Stripe errors through traditional WordPress translation methods since the error messages themselves are generated in Stripe, though this would be possible to implement using custom code.

    The general steps for this custom code would be to:
    1. Hook into the pmpro_after_checkout_preheader hook, which is after the error will be generated
    2. Check if the message in the global $pmpro_msg variable is equal to the Stripe error that you would like to translate
    3. Set the global $pmpro_msg variable to be the translated text that you would like to show

    If you would like more guidance or hands on help implementing this solution with Paid Memberships Pro, please sign up at http://www.paidmembershipspro.com/pricing.

Viewing 1 replies (of 1 total)

The topic ‘Stripe errors translation’ is closed to new replies.