Set up Hosted Checkout.
Start from the Merchant ID URL and add the necessary query parameters.
https://app.inprimepay.com/
#/cpl/{MERCHANT_ID}
?amount=150.00
&name=Cliente%20S.p.A.
&type=installments
Integrate "Pay with Inprimepay" via Hosted Checkout, query strings, server-to-server Custom Payment Link generation, and POST webhooks. You can pre-populate checkout, generate a real-time token, and validate notifications with HMAC-SHA256 signatures.
const checkout = "https://app.inprimepay.com/#/cpl/{MERCHANT_ID}" + "?amount=150.00" + "&name=Customer%20S.pA" + "&description=Invoice%20%23001" + "&type=installments" + "&callback_url=https%3A%2F%2Fmerchant-site.com%2Fcallback"; window.location.href = checkout;
The documentation provides two complementary modes: a low-code integration based on Hosted Checkout URLs and a dynamic server-to-server generation via OpenAPI.
https://app.inprimepay.com/#/cpl/{MERCHANT_ID}.pay_now, installments o subscription.callback_url can include custom parameters such as order_id o reference.X-Api-Key.X-InPrimePay-Signature.Set up Hosted Checkout, generate a Custom Payment Link from your server if necessary, and receive asynchronous transaction notification.
Start from the Merchant ID URL and add the necessary query parameters.
https://app.inprimepay.com/
#/cpl/{MERCHANT_ID}
?amount=150.00
&name=Cliente%20S.p.A.
&type=installments
Send a POST to the OpenAPI endpoint using your Webhook Secret in the X-Api-Key header.
POST /api/custom-payment-links/ openapi/generate X-Api-Key: {WEBHOOK_SECRET} Content-Type: application/json
Upon completion of payment, you will receive a POST with the payment.succeeded event and an HMAC-SHA256 signature.
event: payment.succeeded header: X-InPrimePay-Signature
Redirect your customer to your secure payment URL and pass data via query strings for quick, low-code integration.
https://app.inprimepay.com/#/cpl/{MERCHANT_ID}
amount100.50If specified, the relevant field is pre-filled and disabled.
nameCliente%20S.p.A.If specified, the field is pre-populated and disabled.
descriptionFattura%20%23A12Pre-fill the reason, which can still be modified by the user.
typepay_now, installments or subscription.
callback_url?order_id=12345
o reference: are automatically extracted and returned in the webhook payload.
https://app.inprimepay.com/#/cpl/{MERCHANT_ID}?amount=150.00&name=Cliente%20S.p.A.&description=Fattura%20%23001&type=installments&callback_url=https%3A%2F%2Fmerchant-site.com%2Fcallback
For each new order, you can use the OpenAPI endpoint. Authentication is done via your Webhook Secret, which can be found in your Platform Profile.
POST https://api.inprimepay.com/api/custom-payment-links/openapi/generate
application/json
99.00.
X-Api-Key: {WEBHOOK_SECRET} Content-Type: application / json { "amount": 99.00, "clientName": "Client SpA", "description": "Purchase Premium Service" }
{
"token":
"d7a8e2b1-4f4c-11eb-ae93-0242ac130002"
}
https://app.inprimepay.com/#/cpl/{MERCHANT_ID}?token=d7a8e2b1-4f4c-...&callback_url=https%3A%2F%2Fmerchant-site.com%2Fcallback%3Forder_id%3D12345
Upon completion of the transaction, the Inprimepay server sends an asynchronous POST notification to the endpoint specified in the callback.
payment.succeeded.
eventId, chargeId, sessionId, customerId e orderId.
callback_url, as order_id, can be returned in the payload.
{
"event": "payment.successful",
"eventId": "a1b2c3d4-e5f6-7890-1234-56789abcdef0",
"timestamp": 1696772400,
"chargeId": 14592,
"sessionId": "cs_test_a1b2c3d4...",
"customerId": "{MERCHANT_ID}",
"orderId": "12345",
"amount": 100.50,
"currency": "eur",
"status": "Success",
"merchant": "InPrime Pay",
"originalTimestamp": "2024-05-13T10:35:42Z",
"paymentMethod": "card"
}
To verify that the POST notification is legitimately coming from Inprimepay servers, the request includes a validation signature.
X-InPrimePay-Signature
chargeId it is indicated in the guide as unique and stable.
The attached technical guide outlines security, available methods, speed of integration, and infrastructure reliability.
The Hosted Checkout + webhook flow can be used across multiple digital and retail touchpoints without changing the integration logic.
Generate a checkout directly from ERP, CRM, or vertical software and record the outcome in your flow via webhook.
Connect payment to an application process while keeping the checkout interface in the Inprimepay environment.
Bring Pay Now, installments, and subscriptions into a proprietary checkout without having to build the payment page.
Generate payments from kiosks, touch screens, and other physical flows connected to software systems.
Create a checkout with the amount and reason already set and take the customer to payment from a store touchpoint.
Use the type subscription in flows where the merchant and provider configuration supports recurring payments.
https://api.vostrosito.it/callback/payments.
X-Api-Key and for HMAC validation of the webhook signature.
The essential answers about integration, including specifics added by the Partner Technical Guide.
The Inprimepay API Plan is offered at €0 for access to the solution. Fees for the services and payment providers used still apply.
No. The integration uses an Inprimepay Hosted Checkout: your system builds the link and redirects the customer to the payment URL.
https://app.inprimepay.com/#/cpl/{MERCHANT_ID}.
Yes. The parameters amount e name They can be passed via query strings and, if present, are pre-compiled and made unmodifiable.
The documentation includes pay_now,
installments e subscriptionThe actual availability of the relevant methods depends on the services activated by the merchant.
Yes. The guide specifies that callback_url can include custom parameters such as order_id o reference; are automatically extracted and returned in the webhook payload.
Make a POST to
https://api.inprimepay.com/api/custom-payment-links/openapi/generate
using the Webhook Secret in the header X-Api-Key e
Content-Type: application/json.
amount e clientName are indicated as mandatory;
description This is optional. The response returns a unique token.
Passing a callback_url encoded, the Inprimepay server sends an asynchronous POST webhook notification upon transaction completion. The event indicated in the guide is payment.succeeded.
Calculate the HMAC-SHA256 of the raw JSON request body using your Webhook Secret and compare the hex result with the header.
X-InPrimePay-Signature.
Yes. The Partner Technical Guide indicates that chargeId
It is unique and stable.
Yes. The Hosted Checkout + webhook model is also suitable for management systems, applications, platforms, custom e-commerce, and retail flows.
Hosted Checkout, query parameters, server-to-server generation, tokens, POST webhooks, and HMAC-SHA256 validation are available. For technical support: assistenza@inprimepay.com.
