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

Incorrect service URL for updates #87

Open
moorena opened this issue Dec 6, 2024 · 0 comments
Open

Incorrect service URL for updates #87

moorena opened this issue Dec 6, 2024 · 0 comments

Comments

@moorena
Copy link

moorena commented Dec 6, 2024

This is not the correct URL:

affirmService.URL = affirmData.getURLPath() + '/v1/transactions/' + chargeId + '/update';

API documentation https://docs.affirm.com/developers/reference/update_transaction notes the correct URL is:

https://sandbox.affirm.com/api/v1/transactions/{transaction_id}

There is no /update in the correct URL.

Calling with /update gets a 404 response:

 service=affirm.update status=ERROR errorCode=404 errorMessage={
  "message": "The checkout associated with the transaction could not be found.",
  "status_code": 404,
  "type": "not_found"
}

Once the /update is removed, a 200/OK response with the transaction info in the response body as expected.

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