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

3DS2 - Check Version returned an error 403 Forbidden #45

Open
cwhsu1984 opened this issue Dec 8, 2020 · 0 comments
Open

3DS2 - Check Version returned an error 403 Forbidden #45

cwhsu1984 opened this issue Dec 8, 2020 · 0 comments

Comments

@cwhsu1984
Copy link

Hi,
We did integration on both HPP and API for 3ds2. The HPP works fluently, however, the 3ds2 API does not.

We use SDK to send check version and get 403 forbidden, hence, we send POST by HttpClient manually and still get the same error. The request has content-type json and with securehash header just like what document required. Below are the details of request and response. Why do we keep getting 403 forbidden?

Note that the same account credentials works for HPP without issues.

https://api.globalpay-ecommerce.com/3ds2/protocol-versions
{
    "request_timestamp": "2020-12-07T06:17:59.00187",
    "merchant_id": "MY-MERCHATN-ID",
    "payer_reference": "MY-PAYER-REF",
    "payment_method_reference": "MY-PAYMENT-METHOD-REF",
    "method_notification_url": "MY-METHOD-NOTIFY-URL",
    "account_id": "MY-ACCOUNT-ID"
}
Exception:System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---

And obviously, there is a mistake in the document, the account_name should be account_id instead.
image

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

1 participant