Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3D secure : captured into the ForwardWebViewActivity #53

Closed
mayardb opened this issue Jul 8, 2017 · 3 comments
Closed

3D secure : captured into the ForwardWebViewActivity #53

mayardb opened this issue Jul 8, 2017 · 3 comments

Comments

@mayardb
Copy link

mayardb commented Jul 8, 2017

Hi Hipay Team.

Once again, I open an issue.
When I use 3D secure, I am redirected to my website, with its own url.

You are waiting for urls like hipay://hipay-fullservice/gateway/orders/.../pending with "..." replacing anything according to the code :

if ( data.getHost().equals(getString(R.string.hipay_host)) &&
           data.getScheme().equals(getString(R.string.hipay_scheme))) {
   ...
   }

and in transactionFromCallbackIntent(Uri data)

     if (!pathSegments.isEmpty() && pathSegments.size() == 4) {
                if (pathSegments.get(0).equalsIgnoreCase(OrderRelatedRequest.GatewayCallbackURLPathName) && 
                pathSegments.get(1).equalsIgnoreCase(OrderRelatedRequest.GatewayCallbackURLOrderPathName) &&  
                transactionStatus.containsKey(pathSegments.get(3)))

In my case, i have urls like : https://example.com/.../.../pending.

I an easily override the scheme and the host, but there is no easy way to change the last ifs conditions.
Is there a solution ?

Pull request following

mayardb added a commit to mayardb/hipay-fullservice-sdk-android that referenced this issue Jul 8, 2017
remove the check for all the pathSegments in ForwardWebViewActivity#transactionFromCallbackIntent. Just check the last one which is really usefull
@jtiret jtiret assigned jtiret and nfillion21 and unassigned jtiret Jul 26, 2017
@nfillion21
Copy link
Contributor

Hi @mayardb,

Thanks for opening this issue.

Since we were not able to reproduce this bug, we got a few questions to understand how you got this matching URL problem.

It will help us to correct this bug and upgrade properly to the next version.

Thanks,
Nicolas.

@mayardb
Copy link
Author

mayardb commented Jul 30, 2017

Hi @nfillion21,

@nfillion21
Copy link
Contributor

@mayardb,

You can override the schemes in your PaymentPageRequest object, we will update this week the developer portal documentation to give some mode details about the redirection URLs.

The signature error message is quite explicit, you may have forgotten the proper passphrase for tests purposes (https://developer.hipay.com/doc/hipay-enterprise-sdk-ios/#testing-the-demo-app-installation-guide-setting-the-proper-passphrase).

Please let me know when you succeed making payments with our demo app.

Thanks,
Nicolas

@ghost ghost closed this as completed Jan 29, 2019
@ghost ghost unassigned nfillion21 Jan 29, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants