Skip to content

Incorrect service URL for updates #87

@moorena

Description

@moorena

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions