- Subscribe to store notifications.
- Add a store for the account holder.
- Assign a terminal to the store and ship it to the the account holder’s store address.
- Split funds between accounts in your platform.
Requirements
Before you start processing point-of-sale payments for your account holders, you need to:- Have a Terminal API integration with Adyen.
- Be familiar with the features of Adyen for Platforms, such as account structure, the onboarding and verification process, split payments, and notifications.
-
Contact our Support Team and provide the following required information.
- Countries
- Currencies
- Merchant category codes (MCCs)
- Payment methods
Subscribe to store notifications
When you add a store for an account holder, we send a notification to let you know the store has been set up. To ensure you receive this notification:-
Make a POST request to the Terminal API endpoint, specifying:
active: true.description: Your text to recognize the notification subscription by.- An
eventConfigsarray witheventType: ACCOUNT_HOLDER_STORE_STATUS_CHANGE andincludeMode: INCLUDE. notifyURL: Endpoint on your server where you’ll receive the notifications.hmacSignatureKey: Use this parameter if you want us to protect notifications with HMAC signatures. It specifies the HMAC key that we’ll use to calculate the HMAC signatures of the notifications we send to thenotifyURL. On your end you’ll need to verify the signatures of the incoming notifications.notifyUsernameandnotifyPassword: Username and password that we need for basic authentication with the server where you’ll receive the notifications.sslProtocol: Protocol used to secure the communication, such as TLS or SSL.
Response - Make sure that your server accepts the notifications.
-
Use the
notificationIdyou receive in the response to test the notification.
Create a store for the account holder
Make sure our Support Team has enabled creating stores. If you haven’t requested this yet, refer to the requirements. Once our Support Team has enabled creating stores, you can start adding stores for your account holders. To provide store details, include astoreDetails array when you create a new account holder or when you update an existing one:
-
Make a POST request to one of the following endpoints:
-
In the request body, include an accountHolderDetails.storeDetails array, specifying:
- address: The
city,country,houseNumberOrName,postalCode,stateOrProvince, andstreetof the physical store where the account holder will process payments from. - fullPhoneNumber: The phone number of the store.
- merchantAccount: The merchant account used for accepting payments.
- merchantCategoryCode: The merchant category code (MCC) that classifies the business of the account holder.
- storeName: The name of the account holder’s store. This will be included in the shopper statement.
- storeReference: Your unique reference for the account holder’s store.
The following example shows how to add a store to an existing account holder using an /updateAccountHolder call. /updateAccountHolder requestThe response contains various account holder details, including thestoreDetailsshowing that the status of the store is Pending. Response - address: The
-
Before processing point-of-sale (POS) payments, wait until you receive an
ACCOUNT_HOLDER_STORE_STATUS_CHANGEnotification showing that the new status of the store is Active. Notification
Assign a terminal to the store
To process POS payments, the account holder’s store needs to have one or more payment terminals. The process is as follows:- Select a terminal and inform the account holder of the communication requirements.
- Order a terminal if you do not have the required terminal in your inventory.
-
Assign the terminal from your inventory to the store of the account holder in one of the following ways:
-
Assign terminals using your Customer Area
or - Assign terminals in bulk using API calls The advantage of using the Terminal Management API over the Customer Area, is that API calls enable you to automate assigning terminals and retrieving an overview of terminal assignments.
-
Assign terminals using your Customer Area
- Configure the terminals in the Customer Area, under Point of Sale > Terminal settings.
- Ship the terminal to the physical store address and instruct the account holder to board the terminal.
Split a payment
To split a point-of-sale payment, you can:- Create a split configuration to automatically split payments processed through the store. For more information, refer to How split configuration works.
- Send split instructions for every transaction at time of payment or at capture.
Make a split payment using the Terminal API
To split a POS payment, you make a Terminal API call. In thePaymentRequest you provide the split payment data in the SaleToAcquirerData, in key-value pair or Base64-encoded format. This credits payments directly to an account holder’s account.
To make the payment:
-
Make a POST request to a Terminal API endpoint, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Payment.Specify each split as asplit.item{item#}starting at 1:split.item1,split.item2, and so on. Each split item includes:
accountCode8815628270908491 and EUR 20.00 commission to be paid to the platform. Payment request with split instructionsThe payment request is routed to the terminal, for the shopper to present their card and verify the payment. The payment is then sent to the Adyen payments platform for processing. -
The standard
-
Receive the payment result.
If your integration uses asynchronous cloud communications, you must set up event notifications. We then send the Terminal API responses to your endpoint.
If the payment is successful:
- Approved is shown on the terminal display.
-
You receive a payment response containing:
POIData.POITransactionID.TransactionID: Transaction identifier for the payment in the formattenderReference.pspReference. For example, oLkO0012498220087000.981517998282382C.PaymentResponse.Response.Result: SuccessPaymentResponse.Response.AdditionalResponse: A base64 string. When decoded, this is a JSON object with additional transaction data.PaymentReceipt: Object containing data you can use to generate a receipt.
Split at capture using the API
Some platforms do not know the final split amounts at the moment the payment request is made. If this applies to your account holder’s POS payments, you need to enable manual capture for POS payments and follow up each authorised Terminal API payment with a /payments/{paymentPspReference}/captures API call. Splitting at capture is also the procedure to use for tipping (gratuity) and partial authorizations. Enabling manual capture for POS payments applies to all your point-of-sale account holders. Proceed as follows to split at capture:-
From the
transactionIDfield in the payment response, get thepspReferenceof the authorization you want to capture. -
To capture and split a payment at the same time, send a POST /payments/{paymentPspReference}/captures request, where
paymentPspReferenceis thepspReferenceof the authorization you want to capture. In the body, include the splits array. For each item in the array, specify the following fields:The example below shows how to capture a USD 80.00 authorization withpspReference981517998282382C, and split it into USD 76.00 to be paid into the account holder’s account withaccountCode8815628270908491 and USD 4.00 commission to be paid to your liable account. Split funds at time of capturecurl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
-
In the capture response, note the following:
-
paymentPspReference: The PSP reference of the authorization. -
pspReference: The PSP reference associated with this capture request. This is different from the PSP reference of the authorization. -
status: received
-
- Listen to the CAPTURE webhook to learn the outcome of the request.
