Giter Site home page Giter Site logo

Comments (6)

roykho avatar roykho commented on July 17, 2024

I am not sure if there is a way to do this without actually processing the payment.

from woocommerce-gateway-stripe.

quasel avatar quasel commented on July 17, 2024

there is because when you do just do the check -> tokens you get in the Response the Type of the Card ... could be possible before that as the the Credit Card Icon changes based on the Number of the Card ...

from woocommerce-gateway-stripe.

roykho avatar roykho commented on July 17, 2024

@quasel - can you please point me to the documentation to this?

from woocommerce-gateway-stripe.

quasel avatar quasel commented on July 17, 2024

https://support.stripe.com/questions/how-can-i-see-which-type-of-card-my-customer-is-using
https://stripe.com/docs/api#token_object

it's in the response from the request to https://api.stripe.com/v1/tokens

antoher intresting point is
https://www.masteringmodernpayments.com/blog/how-to-check-cvc-and-address-with-stripe-js

because if you use a multi step checkout it's nice to be able to check cvc/zip before the charge atempt at the end of the process ....

from woocommerce-gateway-stripe.

roykho avatar roykho commented on July 17, 2024

Right, I've seen those documentations already. Now the question is for first time subscriber that needs a token, how do you go about obtaining a token without processing it first? I am looking for a way to do this without having to create the card if it isn't going to be used.

from woocommerce-gateway-stripe.

quasel avatar quasel commented on July 17, 2024

well i guess the only way is to fetch a token - because this does't lead to an authorization and dont store it :P - that's what happens in the multi step echekcout is use - token's created in my case it does even a cvc/zip check by adding an amount to create token - and all togehter is just on the last page ...

from woocommerce-gateway-stripe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.