This API client library allows you to use the Datatrans Payment XML API. without having to bother with the typical grunt work, such as how to build and send the requests or how to interpret and process the responses.
It provides a Factory class to generate API specific Request objects, which have a simple and easy to understand interface.
The available request types are:
- Authorisation (not yet implemented)
- Cancel
- Credit
- Settlement
- Status
In the examples folder there are example implementations each requests.
The up to date class API docs can be found at https://codedoc.pub/orca-services/php-datatrans-xml-api-client/.
- Datatrans showcase: https://www.datatrans.ch/showcase
- Technical documentation can be found on: https://www.datatrans.ch/showcase/documentations/technical-documentation
- Test card numbers can be found on: https://www.datatrans.ch/showcase/test-cc-numbers