Skip to main content

Quick start sandbox in your app

Info: Remember that this is a sandbox version. This means that the transaction is a test. No fees will be charged for executing payment.

The required steps for setting up a Paytool sandbox in your application

1. Call Paytool API by executing transaction initialization method. You can user cURL below to do it.

curl --location 'https://paytool-api.verestro.dev/external-api/transactions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic bWVyY2hhbnRfcGF5dG9vbF9kZW1vOmthcHNhbG9uUGFzcw==' \
--data-raw '{
  "amount": 100,
  "autoDeposit": true,
  "currencyCode": "PLN",
  "description": "Test transaction",
  "merchantUrl": "https://paytool.verestro.dev/demo/",
  "redirectUrl": {
    "successUrl": "https://paytool.verestro.dev/demo/",
    "failureUrl": "https://paytool.verestro.dev/demo/"
  },
  "sender": {
    "firstName": "John",
    "lastName": "Doe",
    "email": "testjohn@gmail.com",
    "address": {
      "countryCode": "PL",
      "city": "Warszawa",
      "postalCode": "03-672",
      "street": "Promienna",
      "houseNumber": "10"
    }
  }
}'
2. In the response to the cURL call, we will return the transactionId and the URL to which you should redirect the payer. This URL
address will open the Paytool view shown below:

Paytool-main-view-PO.png