Stripe Checkout with a Bling

Stripe features localized Checkout with my company logo and everything on their site. I’ve tried to find the feature on M2 settings and the plugin files but, no luck so far. IN MY UNDERSTANDING  M2 pulls the checkout from Stripe.com, however I get only the plain English, with no logo and grey features.

Everything else works normally, I get paid and so forth – could you please help?

  • Rupok
    • Support Ninja

    Hi Pete,

    IN MY UNDERSTANDING M2 pulls the checkout from Stripe.com, however I get only the plain English, with no logo and grey features

    Membership 2 Pro communicates with Stripe with API, it doesn’t bring the whole checkout process from Stripe. As the checkout display elements are designed by M2, you can easily customize those.

    For example, if you want to change any text in Stripe Checkout box, you can use translations files. You will get M2 translation files for different languages here: https://premium.wpmudev.org/translate/projects/membership2

    To know how you can use language files to change plugin strings, you can check this guide: https://premium.wpmudev.org/blog/translating-wordpress-plugins/

    If you want to add your company logo or change design, can you please send us your target design? I believe that can be done with little jQuery and CSS and we will be glad to help you in achieving your target.

    Please send us as much details as you can. I’m looking forward to hearing from you and resolve this issue as soon as possible.

    Have a nice day. Cheers!

    Rupok

  • Pete
    • Design Lord, Child of Thor

    2 photos attached, first showing my site, the second Stripe demo

    I’ve been using the translation quite extensively but some sentences don’t appear on the .po -file. The attached screenshot shows registration page with making the payment with Stripe pop-up. All the matching elements have been translated but:

    • the green info: ”Please check the details..” is not translatable in .po

    • Stripe Checkout pop-up doesn’t translate: ”6 times EUR..”, Card number, MM / YY, Remember me, Pay €15.00

    I haven’t found the WP code which generates the button creating Stripe Checkout pop-up form. As I have studied Stripe I’m guessing that if the attributes: data-image and data-locale are added to button form; the button would trigger the Checkout pop-up form with my logo and in Finnish language.

    data-image="https://s3.amazonaws.com/stripe-uploads/acct_17kgluKRF07gPESSmerchant-icon-1456952930595-pegohyrra_512.png"

    data-locale="auto"

    ..from stripe.com <http://stripe.com/&gt; Checkout pop-up documentation about Integrating Checkout

  • Rupok
    • Support Ninja

    Hi Pete,

    I get it now. Thanks for details. As a quick workaround, can you please login to your server with any FTP Application and go to “/wp-content/plugins/membership/app/gateway/stripe/view/” folder. There you will find a file named “class-ms-gateway-stripe-view-button.php”. Open that file and add the following lines after line 45:

    $stripe_data['image'] = 'https://s3.amazonaws.com/stripe-uploads/acct_17kgluKRF07gPESSmerchant-icon-1456952930595-pegohyrra_512.png';
    $stripe_data['locale'] = 'auto';

    Now save the file. I believe this will serve your purpose. Please let us know how it goes.

    Please note, as you are editing core plugin file, you will have to udpate this manually every time you update your Membership 2 Pro. But I’ve pinged our developer regarding this. I believe he will integrate this feature in our future releases so you don’t have to manually edit this core file every time you update Membership 2 Pro. I’m afraid, I can’t give you any ETA on when this will be integrated, but I believe, he will add this soon.

    Have a nice day. Cheers!

    Rupok

  • Pete
    • Design Lord, Child of Thor

    No success yet. I tried different options but the effect dosn't show on the checkout pop-up. Do I need do something more, I tried different browsers but no luck. Here's the implementation:

    The feature would be well appreciated in the future versions.

  • Rupok
    • Support Ninja

    Hi Pete,

    This is really weird. It is working on my test site and also on my colleague Nasia’s site. Can you please send me message with FTP and WP access credentials of your site through our secure contact form here: https://premium.wpmudev.org/contact/ so I can check the issue and try to fix it on your site?

    Subject: “Attn: Rupok”

    – WordPress admin Username

    – WordPress admin Password

    – Login URL

    – FTP Username

    – FTP Password

    – FTP Host

    – Link back to this thread for reference

    – Any other relevant URLs

    Select “I have a different question” for your topic. This and the subject line ensure that it gets assigned to me.

    I’m looking forward to hearing from you and resolving this issue as soon as possible.

    Have a nice day. Cheers!

    Rupok

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.