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

PaymentSessionInitializationResponse

qrCodestring
Nullable

QR code version of the paymentWindowUrl in base64, which can be displayed for quick device-to-device link sharing such as from a POS device where the customer can scan the code and complete the payment on their own phone. Is only present if generateQrCode is set to true.

paymentWindowUrlstring

URL for ePay Checkout. If you are using Checkout and not Blocks, then you must redirect the customer to this URL.

Format:
uri
javascriptstring

For merchants implementing Blocks, load this script to use the ePay.js client

Format:
uri
keystring

For merchants implementing Blocks, this is the client secret used to allow the ePay.js client to interact with the payment session

PaymentSessionInitializationResponse
{  "qrCode": "string",  "paymentWindowUrl": "http://example.com",  "javascript": "http://example.com",  "key": "string",  "session": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",    "amount": 0,    "attributes": {      "property1": null,      "property2": null    },    "exemptions": [      "string"    ],    "allowedPaymentMethods": [      "CARD",      "VIPPS_MOBILEPAY"    ],    "currency": "string",    "expiresAt": "2019-08-24T14:15:22Z",    "instantCapture": "OFF",    "maxAttempts": 0,    "attempts": 0,    "minimumAge": 0,    "ageVerified": true,    "reportFailure": true,    "reportExpired": true,    "dynamicAmount": true,    "notificationUrl": "http://example.com",    "preAuthUrl": "http://example.com",    "successUrl": "http://example.com",    "returnUrl": "http://example.com",    "failureUrl": "http://example.com",    "retryUrl": "http://example.com",    "customerId": "string",    "pointOfSaleId": "be6bff4f-7fac-43c0-9f6b-cf2cd45ed7d1",    "reference": "string",    "state": "PENDING",    "textOnStatement": "string",    "scaMode": "SKIP",    "timeout": 0,    "createdAt": "2019-08-24T14:15:22Z"  }}