ruLog in to Senler

4. Payment links and statuses

Payment links and statuses

The application provides two agent actions: create a payment link and check a stored order status.

The link creation tool uses the account, items, and prices from the tool instance settings. Senler automatically supplies the project, agent, channel, conversation, and lead context; the customer does not need to provide these service values.

The application creates its own order_id, sends it to Prodamus as the order number, and returns the payment link to the agent. The pending status means that the link exists but no verified payment notification has arrived. An order may remain pending when the customer opens the link without paying.

Confirming payment

A redirect to a successful payment page is not treated as proof. The application changes the status only after a signed Prodamus webhook and verifies the store, order number, signature, and amount.

After confirmation, the application sends a payment message to the same Senler conversation. If message delivery temporarily fails, the confirmed payment remains stored and Prodamus receives a response that requests webhook redelivery.

Checking the status

The status tool returns the stored order_id, status, paid, amount, and payment link. It does not poll Prodamus on every call.

To check a payment, the agent passes the order_id returned by the payment-link tool. The application does not select an order from the conversation history automatically.