Comments (13)
And what the bank authentication page says ?
Any attempts to do a POST to a provided postback url
from 3dsview.
I am not sure if it has tried to do a POST to the postback url. The steps I did were as follows:
- I used the Stripe payment platform to post my card info and postback URL. It returns a redirect URL.
- I used this redirect URL like so:
d3sView.authorize(getIntent().getExtras().getString(Stripe3dSecure.REDIRECT_URL), "", "", getString(R.string.postback_url));
I am not sure about the PaReq and the ACS parameters here. I don't receive any such info from Stripe. Maybe you can make this clearer to me? - The callback for onAuthorizationStarted() and onAuthorizationWebPageLoadingProgressChanged() are called. The Verified by Visa page connected to my Swedish bank account is opened with some options. Here I choose the "mobile bank ID" option.
- In Sweden, for this we use something called a mobile BankID app. So I open this app on my own personal iPhone, and enter my personal code to authenticate this transaction. The app itself will tell me if there has been a success or a failure in my code. In my case I have tested this several times by entering the correct code. I expect the success event to be reflected in my Android WebView, but I get no notification or callback.
I have used this Verified by Visa feature many times on my iOS device and also on my Mac, and it seems to work well. Note also that the same feature works really well on the iOS version of the same app that I am working on. We are of course using the UIWebView component from iOS there, without any extra configurations.
Hope this helps in clarifying the issue. Please let me know if you have any more questions.
from 3dsview.
Well, the Stripe could be source of the problem. Because this component is intended to work with VISA/MC protocol (Verified By Visa / MasterCard Secure Code). PaReq and ACS are required values. Basically, ACS is the redirect url to a card issuer bank for performing an auth and it varies from card to card. Moreover, stripe cannot perform a 3DSecure authentication as it must be done at the card issuer bank web page which varies from card to card.
So, basically stripe should start the payment processing, return you the PaReq and ACS values. Then you use those values with 3DSView component which navigates to the card issuer bank web page and waits for authentication result. Then it gives you the PaReq return value you need then to send back to Stripe.
from 3dsview.
Hi,
It was a false alarm. The issue was with the WebView settings itself. All I had to do was call webView.getSettings().enableDomStorage(); And then it worked.
from 3dsview.
Great it was sorted out.
So it did not work until you added that method or removed ?
from 3dsview.
That's right. It didn't work until then. Maybe this is something you could consider as well, for your WebView.
from 3dsview.
hmm, interesting.
from 3dsview.
Will check this at my side and probably I should add this configuration option into the library default setup. Thanks for discovering this issue !
from 3dsview.
Hi. What about solution of this problem? Some banks works with webView.getSettings().setDomStorageEnabled(true);, But some banks need webView.getSettings().setDomStorageEnabled(false);
from 3dsview.
@Pahanuch shouldn't the enabled dom storage be enough for all banks even if they're don not require it ?
from 3dsview.
I'm sorry, I don't understand. What I must to do to resolve this problem ?
from 3dsview.
@Pahanuch simply always set it to true: webView.getSettings().setDomStorageEnabled(true)
from 3dsview.
Can you show example of your D3SActivity ? With D3SSViewAuthorizationListener onAuthorizationCompleted
By the way I need to load pages with delay
postDelayed(() -> view.loadUrl(String.format("javascript:window.%s.processHTML(document.getElementsByTagName('html')[0].innerHTML);", JavaScriptNS)), 500);
Because App too fast get payment result method
from 3dsview.
Related Issues (20)
- How to use D3sDialog HOT 1
- 3Ds with more than one page does not work HOT 3
- "Processing..." page displays instead of 3DSecure page HOT 1
- completeAuthorization called without required html form for 3D Secure with Continue button HOT 2
- Disallow auto-zoom in 3dsDialog
- Chrome version 71 - Android 8.1.0 HOT 1
- 405 Method now allowed HOT 1
- Certain bank cards don't work with this library HOT 1
- Chrome for Android Update 75 HOT 17
- PDS2 (3-D Secure v2) HOT 1
- Migrate to androidX HOT 1
- Regex matcher prematurely captures blank value HOT 1
- Setup GH actions for automatic build, test and release of the library HOT 1
- Revise code, update project structure/configs/gradle files HOT 2
- Create unit tests to cover what we can cover here in this tiny lib HOT 1
- Migrate artefacts to mavenCentral or GitHub maven repo HOT 1
- 3-D Secure v2: Issue with Monzo in the UK HOT 2
- Google error 413. That's an error after confirm payment
- Webview not loading for stripe gateway HOT 1
- 3 D Secure
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 3dsview.