Jump to content

Help customizing stripe checkout form


ocastaned

Recommended Posts

I just activated Stripe gateway in WHMCS, but the form during the checkup process looks ugly, as you can see on this screenshot: 349Djzi

 

is there anyway to make it look better? I have other payment gateways that shows something like this below. It looks better. 

2rVebOq

 

Also, if possible, I would like to change "YY" to "AA" because my site is in spanish language. Stripe is the only one showing it that way.

 

Thank you.

Link to comment
Share on other sites

1 hour ago, ocastaned said:

is there anyway to make it look better?

can you think of a shorter Spanish phrase for "Expiry Date" than "Fecha de expiración" ?? if so, use a Language Overrides to replace the language string.

it looks like this is occurring because the label string is too long in Spanish... possibly it was only tested in English (Expiry Date" and this issue went unnoticed.

$_LANG['creditcardcardexpires'] = "Fecha de expiración";

the other option might be to play with the div widths, but if you can think of a shorter phrase, I suspect that would b e the easier solution.

1 hour ago, ocastaned said:

Also, if possible, I would like to change "YY" to "AA" because my site is in spanish language. Stripe is the only one showing it that way.

the MM / YY appears to be hardcoded in the template - so to change that would require a template edit, or perhaps a jQuery hook.

Link to comment
Share on other sites

21 hours ago, ocastaned said:

Now I need help changing "YY" to "AA". I am not sure where to find the file I need to edit.

it's hardcoded in checkout.tpl - so editing it would be one option...

<input type="tel" name="ccexpirydate" id="inputCardExpiry" class="field" placeholder="MM / YY{if $showccissuestart} ({$LANG.creditcardcardexpires}){/if}" autocomplete="cc-exp">

if it's going to be MM / AA for everyone, then that's a simple edit and you can just replace YY with AA - but I assume Spanish customers should see MM / AA and everyone else MM / YY ??

<input type="tel" name="ccexpirydate" id="inputCardExpiry" class="field" placeholder="MM / {if $language eq "spanish"}AA{else}YY{/if}{if $showccissuestart} ({$LANG.creditcardcardexpires}){/if}" autocomplete="cc-exp">

what WHMCS should really have done was create a language string for MM / YY and then this solution wouldn't be necessary - let's see if they fix this in v7.9 🙄

you could do this with a hook if you really had to, but I assume that you've previously edited this template anyway.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated