Looking for ePay classic docs? Go to docs.epay.dk
ePay documentationDocsePay documentation

MotoTransactionData

pointOfSaleIdstring
Required

Id of the point of sale to associate the payment with.

Format:
uuid
Example:
"01924737-9c18-71c0-ab1a-88698eaceabf"
referencestring
Nullable

This is the transaction reference, similar to an order ID.
The reference SHOULD be unique for each payment, as some acquirers enforce per-payment uniqueness.
Using a duplicate reference may result in failed payments or make reconciliation difficult.
Only ASCII alphanumeric characters and dashes are allowed.

Worldline specific: - is removed if present and if the value is longer than 12 position, the left most part is used.

Match:
^[A-Za-z0-9-]{1,36}$
Length:
1 <= length <= 36
Example:
"reference-1"
amountinteger
Required

The amount must be defined in minor units. E.g. 2,50 DKK must be set as 250. If amount is set to 0 a token will be created only and returned to the integrator.

Example:
100
currencystring
Required

The currency code of the payment. For Danish Kroner defined as DKK. ISO 4217 alpha-3 (e.g., DKK)

Match:
^[A-Z]{3}$
Example:
"DKK"
instantCapturestring
Nullable

If the payment should be captured instantly or not.

  • OFF indicates that the payment should not be captured instantly.
  • VOID indicates that the payment should be captured instantly and if somehow the instant capture fails the payment is voided.
  • NO_VOID indicates that the payment should be captured instantly and if the capture fails the authorization is kept (no void is made)
Possible values:
"OFF""VOID""NO_VOID"
Example:
"OFF"

DEPRECATED: This parameter will soon be removed and will no longer have any effect. The functionality has been replaced by routing rules in the ePay back office.

List of processors to use. This is the routing of the payment. The value can be shift4, clearhaus and nets.

Processor priority follows the order in the list. If the first processor fails or declines, the next processor in the list will be attempted, and so on until all processors have been tried. Note that the actual processing order is not guaranteed and may depend on external factors, such as the specific payment card used by the cardholder.

textOnStatementstring
Nullable

This is the text set on the transaction in the bank viewed by the card holder. That can be e.g. "order 123". Defaults to the ePay transaction id. Some providers does not support long texts, ePay will automatically cut the text to fit the providers requirements.

Length:
1 <= length <= 39
Example:
"order 123"

A list of pass through attributes that is sent back to the merchant on webhooks. Max size is 1kb.

customerIdstring
Nullable

An optional merchant defined customer id used to uniquely identify a user in the merchant system. This field is required to enable stored payment methods and enhanced age verification.

Example:
"User159"

Customer info. These data points are used during SCA/3DS and is required for some schemes. These data may also be sent to the specific payment provider, if required to complete the payment such as Klarna. It is recommended to send all the info that is available to improve the approval rate.

preAuthUrlstring
Nullable

If not null then pre-authorization webhook are enabled for all transaction attempts for the session. Max length is 1024.

Format:
uri
Length:
1 <= length <= 1024
Example:
"https://example.com/preAuth"

The array containing list of line items that are part of this order. Maximum of 1000 line items could be processed in a single order. This is used by some payment methods, such as Klarna.

Items:
items <= 1000

Note scaMode is always set to FORCE when initializing a subscription due to EU PSD2 regulations.

To create a subscription, allowing you to process MIT transactions in the future, you must send the subscription object. To process MIT transactions you must ensure your acquirer agreement has recurring payments enabled.

MotoTransactionData
{  "pointOfSaleId": "01924737-9c18-71c0-ab1a-88698eaceabf",  "reference": "reference-1",  "amount": 100,  "currency": "DKK",  "instantCapture": "OFF",  "processor": [    "shift4"  ],  "textOnStatement": "order 123",  "attributes": {    "property1": null,    "property2": null  },  "customerId": "User159",  "customer": {    "firstName": "Peter",    "lastName": "Nielsen",    "email": "email@example.com"  },  "preAuthUrl": "https://example.com/preAuth",  "orderLines": [    {      "description": "Running shoe",      "imageUrl": "string",      "quantity": 2,      "totalAmount": 20000,      "unitPrice": 10000,      "type": "PHYSICAL"    }  ],  "subscription": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "amount": 0,    "type": "SCHEDULED",    "reference": "subscription-1",    "expiryDate": "2019-08-24",    "interval": {      "period": "DAY",      "frequency": 0    },    "billingAgreement": {      "billingPlanId": "019a7266-2f3a-7b26-9c93-b950aea9e13c",      "reference": "agreement-1",      "nextChargeAt": "2030-07-22"    }  }}