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

Make the payments endpoint configurable #11

Open
asdesigned opened this issue Jun 13, 2018 · 2 comments
Open

Make the payments endpoint configurable #11

asdesigned opened this issue Jun 13, 2018 · 2 comments
Assignees

Comments

@asdesigned
Copy link

Recently a data issue with Paysafe meant that the api.netbanx endpoint wasn't working properly, but the api.paysafe one was. Currently the SDK only allows LIVE or TEST environment parameters, both use the netbanx endpoint. Would be much nicer to allow an endpoint to be configurable if required

@francoisneron
Copy link
Contributor

Hi @asdesigned, actually both endpoint should be changed to api.paysafe.com or api.test.paysafe.com, but we still support the old URL. The endpoint should be hard-coded in the code since it's static value and should never change.

The data issue you are talking about was it really on api.netbanx in PROD?
Do you have timestamp, request, response, logs about the issue?
Did you notify our [email protected] about this?

protected void environment(Environment newEnvironment)
{
this.apiEnvironment = newEnvironment;
if (this.apiEnvironment == Environment.TEST)
{
this.apiEndPoint = "https://api.test.netbanx.com";
}
else
{
this.apiEndPoint = "https://api.netbanx.com";
}
}

@asdesigned
Copy link
Author

asdesigned commented Jun 14, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants