activemerchant / payment_icons

An easy to use library that allows you to manage and access payment icons
MIT License
144 stars 422 forks source link

adding resolvepay icon #1138

Closed resolveeng closed 5 months ago

resolveeng commented 7 months ago

Why are you adding this icons?

I'm adding/updating this icon(s) because ..

Help us identify yourself

Link to the brand guidelines: https://www.figma.com/file/Wt7KZnuPr0UlZZ3beBUG43/Brand-guide?type=design&node-id=2%3A258&mode=design&t=J2IuHLm01uIQ7r0D-1

Checklist to add new icons

If this pull request is not adding new icons, you can remove this checklist.

Attach a screenshot of the icon along side the example Visa icon

Screenshot:

Screen Shot 2024-01-25 at 12 51 50 PM image

Tips how to create a screenshot

We have found free online SVG editor https://www.freecodeformat.com/svg-editor.php very useful to create one. Here is a sample code for you to verify that you icon appears properly along side the placeholder.

<!-- Change background color if needed to showcase your icon better -->
<style> body { background: black; } </style>

<!-- DO NOT DELETE EXAMPLE -->
<svg viewBox="0 0 38 24" xmlns="http://www.w3.org/2000/svg" role="img" width="38" height="24" aria-labelledby="pi-visa"><title id="pi-visa">Visa</title><path opacity=".07" d="M35 0H3C1.3 0 0 1.3 0 3v18c0 1.7 1.4 3 3 3h32c1.7 0 3-1.3 3-3V3c0-1.7-1.4-3-3-3z"/><path fill="#fff" d="M35 1c1.1 0 2 .9 2 2v18c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h32"/><path d="M28.3 10.1H28c-.4 1-.7 1.5-1 3h1.9c-.3-1.5-.3-2.2-.6-3zm2.9 5.9h-1.7c-.1 0-.1 0-.2-.1l-.2-.9-.1-.2h-2.4c-.1 0-.2 0-.2.2l-.3.9c0 .1-.1.1-.1.1h-2.1l.2-.5L27 8.7c0-.5.3-.7.8-.7h1.5c.1 0 .2 0 .2.2l1.4 6.5c.1.4.2.7.2 1.1.1.1.1.1.1.2zm-13.4-.3l.4-1.8c.1 0 .2.1.2.1.7.3 1.4.5 2.1.4.2 0 .5-.1.7-.2.5-.2.5-.7.1-1.1-.2-.2-.5-.3-.8-.5-.4-.2-.8-.4-1.1-.7-1.2-1-.8-2.4-.1-3.1.6-.4.9-.8 1.7-.8 1.2 0 2.5 0 3.1.2h.1c-.1.6-.2 1.1-.4 1.7-.5-.2-1-.4-1.5-.4-.3 0-.6 0-.9.1-.2 0-.3.1-.4.2-.2.2-.2.5 0 .7l.5.4c.4.2.8.4 1.1.6.5.3 1 .8 1.1 1.4.2.9-.1 1.7-.9 2.3-.5.4-.7.6-1.4.6-1.4 0-2.5.1-3.4-.2-.1.2-.1.2-.2.1zm-3.5.3c.1-.7.1-.7.2-1 .5-2.2 1-4.5 1.4-6.7.1-.2.1-.3.3-.3H18c-.2 1.2-.4 2.1-.7 3.2-.3 1.5-.6 3-1 4.5 0 .2-.1.2-.3.2M5 8.2c0-.1.2-.2.3-.2h3.4c.5 0 .9.3 1 .8l.9 4.4c0 .1 0 .1.1.2 0-.1.1-.1.1-.1l2.1-5.1c-.1-.1 0-.2.1-.2h2.1c0 .1 0 .1-.1.2l-3.1 7.3c-.1.2-.1.3-.2.4-.1.1-.3 0-.5 0H9.7c-.1 0-.2 0-.2-.2L7.9 9.5c-.2-.2-.5-.5-.9-.6-.6-.3-1.7-.5-1.9-.5L5 8.2z" fill="#142688"/></svg>

<!-- TODO: insert your icon here -->
<YOUR SVG CODE>

<br>
<!-- TODO: insert your icon here -->
<YOUR SVG CODE>
</br>

If the icons are intended for use by Shopify, please provide the following info:

Who are you working with at Shopify? (avoid adding personal details, provide github handle(preferred) or first name and last name)

What's the expected date of this change to deploy on Shopify?

hellicarusprime commented 7 months ago

@resolveeng The way you're applying the border to the icon doesn't look right. Please refer to our contributing guidelines and update.

resolveeng commented 7 months ago

@hellicarusprime Thanks for the feedback. We applied the #00000 0.07 2px border radius stroke. However, we noticed that making the border radius outside as requested in the guidelines made the dimensions of our logo appear bigger when applied (but the dimensions are still technically 38x24). Because of this, we wanted to know if it would be better to send a logo that is technically 37x23 but 'looks' correct. I've attached a photo for reference. Looking forward to your reply! Screen Shot 2024-01-29 at 10 21 16 PM

hellicarusprime commented 7 months ago

Hey @resolveeng an approach that works for some is to use a background layer for the border, which is 38 x 24 and another layer for the inner portion (see attached screenshot).

image
resolveeng commented 7 months ago

Thank you @hellicarusprime . I have pushed a new commit to the PR.

Screen Shot 2024-02-01 at 4 39 08 PM

hellicarusprime commented 7 months ago

Hey @resolveeng—to ensure we have the correct 2 px border-radius, the background layer should be 36 x 22 with the 1 px border applied to the outside. This will make it the appropriate 38 x 24. Apologies for any confusion.

resolveeng commented 7 months ago

@hellicarusprime just pushed new commit with the suggested fix. Please let me know if that meets the requirements. Thank you.

image

hellicarusprime commented 7 months ago

Hey @resolveeng, there's still something off with it. This might help to explain things more clearly.

image
resolveeng commented 7 months ago

@hellicarusprime just pushed a fix. Please let us know if that looks better. Apologies for the back and forth.

image

resolveeng commented 6 months ago

hello @hellicarusprime , any idea of when this is going to be available in the Shopify partners portal? Thank you.

resolveeng commented 6 months ago

hello @hellicarusprime @adeniyiao any idea of when a new release will come out with the new logos?

adeniyiao commented 6 months ago

Hi @resolveeng ,

The PR is failing some tests with error below. Could you please address. Thanks

PaymentIconTest#test_Every_payment_SVG_meets_accessibility_requirements [test/unit/payment_icon_test.rb:89]:
{:message=>"The 'clip0_17506_909' ID should be pi-resolvepay-clip0_17506_909 (missing 'pi-' prefix)"}.
Expected /pi-(.*)/ to match "clip0_17506_909".
resolveeng commented 6 months ago

thank you @adeniyiao . I have pushed a fix to the ID as requested. Can you check if tests are successful now?

resolveeng commented 5 months ago

hello @hellicarusprime @adeniyiao is there anything else you need from our end to create a new release? Thank you.