• Resolved sunfffd

    (@sunfffd)


    Hello,

    I am trying to implement a feature that will detect customers credit card with a particular prefix, and apply discount on the order.

    I was able to get the stripe_source ID at ‘woocommerce_before_checkout_process’, but I am not sure how can I retrieve the Stripe object with this ID.

    Do you have an idea? Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    I understand you’d like to check the credit card number and then take an action based on the prefix. This isn’t something the plugin is set up to do and I’d recommend against looking too far into it: you would then be processing the credit card number on your own site and opening up for vulnerabilities around sensitive data.

    I’d recommend finding different criteria to offer a discount, for example based on their user role, location, a coupon, etc.

    Thread Starter sunfffd

    (@sunfffd)

    Hello,

    What if I will not be storing any of those data? The check should only happens within the validation step.

    Or can I do it at the checkout page form before the transaction?

    Erica K. a11n

    (@piratepenpen)

    Automattic Happiness Engineer

    Hey @sunfffd,

    If you’re using Stripe, it is likely that the site will not have PCI compliancy if you’re gaining access to credit card information outside of the encrypted transaction and you run the risk of having your account denied/suspended. We recommend reading through the Stripe PCI compliancy documentation as it lists what Stripe requires to certify your site.

    If you’re open to other recommendations, we’re happy to help, but we will be unable to provide assistance with bypassing the encrypted transaction.

    Plugin Support Augustus – a11n

    (@augustuswp)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Getting credit card number at Place Order’ is closed to new replies.