Examples

Examples of code

In this repository you can find the examples of code how to use Billease Transactions API:

GitLab: Transactions API. Examples

Demo “Web Shop”

This demo web shop shows the simple checkout process: Demo

Postman Collection

Postman

Postman is a collaboration platform for API development

Here you can download the application: https://www.postman.com/

Here you can download our Postamn example: Postman collection

Create Environment

Our example uses environment variables. You have to create staging environment like on this example:

image-20200414132155574

Environment Variables:

image-20200414132255034

token - your token for staging environemnt

merchant_code - merchant code

shop_code - shop code

transaction_code - this is transaction ID. You will get it from the response of Create transaction method

Create transaction

image-20200414135205162

In current example we created a transaction with a few items. You have to setup variable transaction_code from this response:

image-20200414135359327

After that you can update the transaction (or check status):

image-20200414135524335

Callback

Also you can test your callback API:

image-20200414135705090

Here is a ping of callback API:

image-20200414140030747

You have to update Authorization depending on your implementation. We support three types of authorization:

  • Bearer Token
  • API Key
  • Basic authentication

Also update the endpoint

Production Checklist