Git Product home page Git Product logo

Comments (4)

bmvantunes avatar bmvantunes commented on July 18, 2024

Can you please create a stackblitz or jsfiddle example? It's easier for me to understand the problem and help you :)

from stripe-3d-secure.

juragandotid avatar juragandotid commented on July 18, 2024

from stripe-3d-secure.

bmvantunes avatar bmvantunes commented on July 18, 2024

Hi,

The loading step can take a few seconds.
Basically, we are waiting for stripe API, and in the case of 3ds cards, for the iframe to load. In a real application, you want a good waiting experience not only a "Loading... Please wait...", but for demo purposes, it does the trick :)

All my logic is super simple. Every time you click a button it calls onClick inside main.js. Then it calls doPayment inside api.js. The functions inside api.js are presented in order of execution, to make the understanding easier. You can have a closer look at https://github.com/bmvantunes/stripe-3d-secure/blob/master/js/api.js

I hope it helps.

from stripe-3d-secure.

juragandotid avatar juragandotid commented on July 18, 2024

from stripe-3d-secure.

Related Issues (3)

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.