• Resolved Peak Digital

    (@netplusnagano)


    Wrong object returned from stripe is being used, causing localised error messages to not display.

    stripe.js l:93

    Broken:
    if ( wc_stripe_params.hasOwnProperty( responseObject.response.error.code ) ) {
    message = wc_stripe_params[ responseObject.response.error.code ];
    }

    Fixed:
    if ( wc_stripe_params.hasOwnProperty( responseObject.response.error.type ) ) {
    message = wc_stripe_params[ responseObject.response.error.type ];
    }

    If you could merge this in to the next update that would be a great help.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Error message localization broken’ is closed to new replies.