• Resolved Mohamed

    (@eazyproo)


    Hello hope you all doing great.

    So we are big company that using your plugin for long time ago and we have implemented some features on our webiste with your company.

    (we are using Advanced credit cards payemnts).

    So we have added a function that gets the customer card type of the card he paid with on the website and show that card icon under the payment method section at the thank you page for example,

    if the customer paid in our website with VISA card so on the thank you page it show Paid with (VISA card icon).

    So we have done this function for getting the card type info from this code with the old hosting fields, $card_type = $order->get_meta(‘_card_type’);

    The issue we are facing now is after updating your plugin and our woocommerce srttings country set to United states, we saw that you made a big updates on the card hosted fields with new styles, so now our code which was getting the card type data stopped working as your new hosted fields are not store the card type data.

    Can you please help us to locate how we can get the card type data as it’s not stored at all on woocommerce metadata?

    We have 2 experienced developers which failed to make this function with your new hosted fields.

    Please help us, we are waiting your answer.

    Thanks.

    • This topic was modified 9 months, 4 weeks ago by Mohamed.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @eazyproo

    To disable the new card fields and use the hosted fields instead, you can install a plugin through the following link: https://drive.google.com/uc?export=download&id=1Tk1GqnTUb1aP1QlmjfcnP55YTHXN-fF6.

    Alternatively, you can use the following filter:

    add_filter('woocommerce.feature-flags.woocommerce_paypal_payments.card_fields_enabled', '__return_false');

    This will disable the new card fields feature.

    Can you please help us to locate how we can get the card type data as it’s not stored at all on woocommerce metadata?

    The card brand will be stored in the order meta once?this pull request?is merged (still a work in progress).

    If you have any further questions or need additional assistance, please do not hesitate to reach out.

    Kind Regards,

    Krystian

    Thread Starter Mohamed

    (@eazyproo)

    Hi,

    may i know when the store card brand in the order meta feature pull will be merged?

    This is a really important feature for us, hope you let us know ASAP, thanks.

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello?@eazyproo

    We are currently planning to include this in the release candidate of version 2.5.4, which is expected to be available in the next couple of days. However, please note that we do not have a strict ETA for this. The only thing that I can recommend now is monitoring our GitHub releases page here: https://github.com/woocommerce/woocommerce-paypal-payments/releases

    Kind regards,
    Krystian

    Thread Starter Mohamed

    (@eazyproo)

    Hi, thanks for the informatio.

    Also we have another question, how can we style the new hosted fields with CSS?

    Becasuse we can see that this fields cannot be styled at all, can you please help on that?

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello?@eazyproo

    Update to my previous response; the linked PR will be part of the update near the end of February.

    The new card fields can still be styled with CSS, just not as extensively as the old hosted fields. Here are the Supported CSS properties for:

    The old hosted fields were flexible enough for us to copy the theme styles and apply them to the fields. But with the new card fields, PayPal has more control over properties like borders, so certain properties can no longer be adjusted using CSS. But for extensive customizations, the old fields remain available as a fallback option.

    If there are specific customizations you’re looking to achieve with the new fields that were possible with the old fields, please provide us with an example. We are committed to improving our services and are open to input and adjustments. Sharing your specific needs can help us raise these concerns with PayPal for potential enhancements.

    Kind regards,
    Krystian

    Thread Starter Mohamed

    (@eazyproo)

    Hi, thanks for your response.

    Regarding the card brand feature i see on your github it’s only showing the card brand if the 3d secure is enabled and working, why it’s not showing the card brand if the 3d secure enabled or not? i think card brand have no connection with the 3d secure enabled or not by you made the function to force the card brand to appear when 3d secure enabled, can you please fix that?

    Also about the CSS style for the new hosted field we tried the mentioned CSS from your link and we put the CSS on our theme however they don’t working at all and your style is forced…

    Please help, thx

    Thread Starter Mohamed

    (@eazyproo)

    Hi, any update?

    Thread Starter Mohamed

    (@eazyproo)

    Will you guys even response?

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @eazyproo

    I apologize for the delayed response. I have consulted this case with development.

    Also about the CSS style for the new hosted field we tried the mentioned CSS from your link and we put the CSS on our theme however they don’t working at all and your style is forced…

    The plugin is?getting the element?and then?filters out the properties that are not allowed. For example, this CSS sample works fine:

    #ppcp-credit-card-gateway-card-number { 
    color: green; 
    font-family: "Arial Black"; 
    padding: 50px; 
    }

    We would need to know more details about what exactly you are trying to achieve, preferably with code examples.

    Regarding the card brand feature i see on your github it’s only showing the card brand if the 3d secure is enabled and working, why it’s not showing the card brand if the 3d secure enabled or not??

    Following your feedback, the card brand will be stored in the Address Verification Result in the next update:?https://github.com/woocommerce/woocommerce-paypal-payments/pull/2026

    Kind regards,
    Krystian

    Thread Starter Mohamed

    (@eazyproo)

    Hello, thanks for your response and update.

    i see your CSS code working, and the style we are tyring to do on the new hosted fields is as below please check screenshot, (we made this style on the old hosted fields when the hosted fields validate the card type so it change the form background color and screenshot below)

    https://ibb.co/LQ6h97S

    And this is the CSS code used (Old hosted fields),
    fieldset#wc-ppcp-credit-card-gateway-cc-form:has(#ppcp-credit-card-gateway-card-number.visa) {
    background-color: #122c92;
    background-image: linear-gradient(to right, #122D96 0%, #191F5D 100%);
    -webkit-animation: 0.4s opc forwards;
    opacity: 0;
    transition: opacity 0.9s;
    border:1px solid #191F5D !important;
    }

    So we trying to make the same for the new hosted fields is there any possible way to implement such a style? we are a company that willing even to pay you guys do make that functions and styles because our own developers saying it’s not possible as this plugin is fully hosted by 3rd party.

    Also we checked the card brand new updates and i can say thank you so much for helping us.

    • This reply was modified 9 months, 2 weeks ago by Mohamed.
    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello?@eazyproo

    These customization looks like beyond the scope of our support. It is likely that even at the development level, our ability to address these issues is limited.

    However, we can submit your customisation request to PayPal. Let us know if you don’t mind us sharing some of the relevant details with our partners at PayPal to explore potential opportunities to increase customisation of new fields, as they are open to feedback.

    In any case, the new fields may have inherent limitations compared to the old ones, due to the inclusion of out-of-the-box features such as automated field validation.

    Looking for your feedback.

    Kind regards,
    Krystian

    Thread Starter Mohamed

    (@eazyproo)

    Hi, yes sure you can share the customizations with your PayPal partners.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Card type function.’ is closed to new replies.