Create a transaction Run in API Explorer
In accordance with PCI DSS requirements (set by payment organizations), processing, transmitting, or storing card numbers and other card data is prohibited. If you have a valid PCI DSS certificate and want to provide a card payment form on your store website - please contact Axepta support. If you redirect directly to the Axepta card payment form, this is not required.
Body
Required
-
Transaction type. Allowed values: sale
Value is
sale. -
Store identifier as
UUID v4Maximum length is
36. Format should match the following pattern:^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$. -
Transaction amount in the smallest currency unit, e.g. grosz
-
Transaction currency in
ISO 4217formatMaximum length is
3. Values arePLNorEUR. -
Merchant order number; allowed characters: A-Za-z0-9#_-./ plus space (0x20) and UNICODE range 00C0 - 02C0 (incl. Polish diacritics)
Maximum length is
100. Format should match the following pattern:^[A-Za-z0-9#_\-\.\/ \u00C0-\u02C0]+$. -
Transaction title; allowed characters: A-Za-z0-9#&_-"',./ plus space (0x20) and UNICODE range 00C0 - 02C0 (incl. Polish diacritics)
Maximum length is
255. Format should match the following pattern:^[A-Za-z0-9#_\-\.\/ \u00C0-\u02C0]+$. -
Method used to process the order. More information in section [1.4 Transaction methods and channels]
-
Payment channel designation. More information in section [1.4 Transaction methods and channels]
-
Return URL from the external payment page after a successful payment
Maximum length is
300. -
Return URL from the external payment page in case of a payment error
Maximum length is
300. -
Default return URL.
Maximum length is
300. -
The payer's real IP address provided in
IPv4orIPv6. Required when providing blikCode. -
Transaction expiration date as a Unix timestamp in seconds (seconds since 1970-01-01 UTC) (value must be >= 1 and <= 4294967295). If not provided or null, the transaction is valid indefinitely. Not completing the payment by this time will cancel it.
-
BLIK code value for transactions where the code is provided via API.
Maximum length is
6. -
Distributor name, allowed value: "shoper".
-
Card payment data. (Required for card payments)
-
Payer browser information required when performing card payments with 3DS authorization.
curl \
--request POST 'https://api.sandbox.axepta.pl/v1/merchant/{merchantId}/transaction' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"type":"sale","serviceId":"a3a5b7ad-ab73-46f0-97f2-3238f8bd450d","amount":100,"currency":"PLN","title":"Title 123","orderId":"123-123","paymentMethod":"blik","paymentMethodChannel":"blik","successReturnUrl":"hhttps://domain.com/success","failureReturnUrl":"https://domain.com/failure","customer":{"firstName":"Jan","lastName":"Kowalski","phone":48512512512,"email":"jan.kowalski@example.com"}}'
{
"type": "sale",
"serviceId": "a3a5b7ad-ab73-46f0-97f2-3238f8bd450d",
"amount": 100,
"currency": "PLN",
"title": "Title 123",
"orderId": "123-123",
"paymentMethod": "blik",
"paymentMethodChannel": "blik",
"successReturnUrl": "hhttps://domain.com/success",
"failureReturnUrl": "https://domain.com/failure",
"customer": {
"firstName": "Jan",
"lastName": "Kowalski",
"phone": 48512512512,
"email": "jan.kowalski@example.com"
}
}