LivotovLabs / 3DSView

Android UI component to process banking 3D Secure (MasterCard SecureCode / Verified By Visa) payment authorizations in Android apps.
Apache License 2.0
111 stars 51 forks source link

How to use D3sDialog #15

Open rashidtab opened 7 years ago

rashidtab commented 7 years ago

Not a single code snippet is available on how to use the D3SDialog

When I am using D3S Dialog, i want to show the Loading progress bar, when ever there is loading.

Especially after the 3D secure pin is entered and when a user click the submit button.

Note: I dont know the URL of the 3D secure page , which is created by ACS Server with multiple redirection

livotov commented 7 years ago

Sorry for late response, basically, the dialog usage is simple, just use

D3SDialog.newInstance(...)

with the correct auth parameters, then invoke

dialog.showDialogAndAuthenticate(...)

And if you don't know the url of ACS server page you will not be able to process the auth as the entire idea that you receive ACS Server, MD and PaReq parameters from your payment processor, then redirects client to the ACS page for authentication, then uses PaRes data with your payment processor again in order to complete the authorisation.