GithubHelp home page GithubHelp logo

SPIKE: 3DS about algomart HOT 1 CLOSED

deptagency avatar deptagency commented on June 16, 2024
SPIKE: 3DS

from algomart.

Comments (1)

smonn avatar smonn commented on June 16, 2024

Still waiting to confirm if this is available in non-sandbox, but it seems we can implement this like the following:

  1. Initiate payment as we do today, but set verification to three_d_secure (and the success/failure URLs accordingly).
  2. Wait for status for the payment. If the status appears like the below example, then redirect from the checkout page to the 3D Secure page. Upon return, proceed with status checks and then continue with regular flow.
{
  data: {
    id: '<Redacted UUID>',
    type: 'payment',
    merchantId: '<Redacted UUID>',
    merchantWalletId: '<Redacted ID>',
    source: { id: '<Redacted UUID>', type: 'card' },
    description: 'Payment Test',
    amount: { amount: '5.66', currency: 'USD' },
    status: 'action_required',
    requiredAction: {
      type: 'three_d_secure_required',
      redirectUrl: 'https://web-sandbox.circle.com/v1/3ds/session/<Redacted UUID>'
    },
    refunds: [],
    createDate: '2021-11-30T18:07:28.852Z',
    updateDate: '2021-11-30T18:07:29.301067Z',
    metadata: { email: '<Redacted Email Address>' }
  }
}

If we encounter a failure in the 3D Secure flow (meaning we end up on the failure URL), then display a similar payment error message as we do today.

All of this also, probably, means we don't have to worry about which country the payment is originating from, Circle will direct us into the right flow as needed. Still waiting for confirmation on this part too.

from algomart.

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.