Create direct payment session

Starts a payment with a payment method the shopper already chose in your checkout, without showing Aera's checkout page. Use it for a stored card, Vipps MobilePay or Apple Pay.

Send the payment method in paymentMethodInfo.paymentMethodDetails. For a stored card, send the card's paymentInstrumentReference from Get payment instruments in paymentInstrumentsProfileData.

If the shopper must authenticate, the response contains a paymentSessionUrl. Redirect the shopper to it. If not, the response has no paymentSessionUrl, and you can check the result with Get payment status.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The request body for Create direct payment session.

merchantData
object
required

Where to send the shopper after checkout, where to send notifications, and how to show the checkout.

transactionData
object
required

The amount, your reference, and how the payment is captured and stored.

paymentInstrumentsProfileData
object

Identifies the shopper, so Aera can show, pre-select or store their payment instruments.

paymentMethodInfo
object
required

The payment method and payment instrument to use.

Headers
string
required
^[a-zA-Z0-9\-]{1,13}$

Your merchant ID from Aera.

uuid
required

A unique ID for this request, in UUID v7 format. Use a new key for every new request. If a request fails because of a timeout or network error, send it again with the same key. Aera then doesn't process it twice. It will remember this key for 30 days in the test system and two days in the production system. When a key is found the expected response will be returned.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/vnd.payments.v1+json