As previously mentioned, when the buyer clicks on the 'Go to Payment' button, Talonarium automatically communicates with your server to provide the web link.
This communication is made through an HTTP request of type POST to your server. It is necessary to configure the URL of this endpoint by entering the Talonarium application, within the POS configuration for an organizer group.
POST: https://your-server.com/payment-link
Talonarium sends the following information in the JSON body:
{
"paymentIntentId": "63ac23b439eaa500258b84fc",
"price": 15,
"currency": "EUR",
"customerName": "Jean Warner",
"customerEmail": "[email protected]",
"customerLocale": "EN",
"eventTitle": "Music festival in the beach",
"organizerName": "BCN events",
"tickets": [
{
"customerName": "Katerina Dean",
"priceCategory": "vip",
"price": 10
},
{
"customerName": "Rachel Macias",
"priceCategory": "default",
"price": 5
}
]
}
At this time, your server must ask the online payment system to generate a payment link with the obtained data and then, return it as a response to the Talonarium's request with the following JSON structure:
{
"paymentLink": "https://your-tpv-payment-link"
}
The payment link should be in HTTPS format. Once Talonarium receives the payment link, it automatically redirects the buyer to this page to make the payment.