Support » Plugin: Paid Memberships Pro » Stripe Error Messages Localization

  • Resolved mfjunior74

    (@mfjunior74)


    The plugins use Stripe.js v2 to securely collect card information https://js.stripe.com/v2/
    but the error message are only in english. Is possible to localise them in different languages?
    Thank you, Marco

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andrew

    (@andrewza)

    Hi Marco,

    Thank you for using Paid Memberships Pro.

    Currently this is not supported and will require some custom coding to achieve, I have added this into our development schedule so it may be released in the near future.

    For the interim, here is a possible solution you may explore – https://stackoverflow.com/questions/23437439/non-english-texts-in-stripe-possible

    Dear Andrew, thank you for answering,

    I have modified the function stripeResponseHandler(status, response) in the class.pmprogateway_stripe.php file, adding var errorMessages in my language end the line

    if ( response.error && response.error.type == ‘card_error’ ){

    alert(errorMessages[ response.error.code ] );
    jQuery(“.payment-errors”).text(errorMessages[ response.error.code ] );

    but if I upgrade the plugin I will loose everything, there is a filter for function.php file?
    Thank You, Marco

    Plugin Author Andrew

    (@andrewza)

    Thank you for this Marco, unfortunately there is no filter for this at this point in time.

    I have added this to our development schedule available on GitHub

    Thank you for your understanding.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.