Coder Social home page Coder Social logo

Comments (8)

nicolas-maalouf-cko avatar nicolas-maalouf-cko commented on July 24, 2024

Hi @Oleygen

You need to define they dynamic success_url and failure_url when sending the payment request in step 2 as well as defined here.

These should be the same values you then set when initialising ThreedsWebViewController in the mobile app.

The redirection to success_url or failure_url happens after the first redirection to https://3ds2-sandbox.ckotech.co/interceptor/3ds_xxxxxx... depending on whether the cardholder succeeds or fails the 3DS authentication in the interceptor.

from frames-ios.

Oleygen avatar Oleygen commented on July 24, 2024

@nicolas-maalouf-cko
from docs:

success_url For redirect payment methods, this overrides the default success redirect URL configured on your account

We're set those urls on a Checkout Hub, or still should we to sent those params?

from frames-ios.

nicolas-maalouf-cko avatar nicolas-maalouf-cko commented on July 24, 2024

If you don't send them in the payment request then the default values on the hub will be used

from frames-ios.

Oleygen avatar Oleygen commented on July 24, 2024

Right. Therefore default values set, but still incorrect url comes from a webView

from frames-ios.

nicolas-maalouf-cko avatar nicolas-maalouf-cko commented on July 24, 2024

The interceptor URL is the one that needs to first be loaded in the webview, and then when the cardholder interacts with the UI they're redirected to the success or failure URL.

When you say "Actual value" for the URL, where are you actually reading it from?

from frames-ios.

Oleygen avatar Oleygen commented on July 24, 2024

@nicolas-maalouf-cko
ThreedsWebViewController.webview.url
or

    func webView(_ webView: WKWebView,
    didReceiveServerRedirectForProvisionalNavigation navigation: WKNavigation!) {
    print(webView.url!)

from frames-ios.

nicolas-maalouf-cko avatar nicolas-maalouf-cko commented on July 24, 2024

@Oleygen this could be happening because of how our 3DS interceptor was updated for 3DS2

Would you be able to try to comment out this line:
https://github.com/checkout/frames-ios/blob/master/Source/ThreedsWebViewController.swift#L74

And try again see if the problem is resolved?

Thanks

from frames-ios.

Oleygen avatar Oleygen commented on July 24, 2024

@nicolas-maalouf-cko
Commenting out that line helped. Thanks!

from frames-ios.

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.