WebSite X5Help Center

 
Adrian B.
Adrian B.
User

Integratio for Tpay  pl

Автор: Adrian B.
Просмотрено 252, Подписчики 1, Размещенный 0  

Hello,

I run an online store, autopacz.pl, built with WebSite X5 Pro. I am working on integrating Tpay payments using its API and a custom PHP script.

I need your advice on how to connect the payment confirmation process with WebSite X5’s order management system.

Could you please clarify:

  1. After Tpay confirms a successful payment through a server-to-server notification (webhook), how can I mark the corresponding WebSite X5 order as paid?
  2. Does WebSite X5 provide an API, a documented method for updating an order’s payment status, or another recommended mechanism for this?
  3. Which order identifiers or parameters should I pass to Tpay so that a payment can reliably be matched to the correct WebSite X5 order?
  4. Is there any documentation or example code for integrating a custom payment gateway and updating the order status?

My store saves orders in a database on my hosting server. I want to implement the integration properly, so that an order is marked as paid only after the payment has been verified by Tpay—not simply when the customer returns to a “payment successful” page.

I would appreciate any guidance or documentation you can provide.

Best regards,

Размещено
1 Ответы
Incomedia
Eric C.
Incomedia

Hello Adrian,
as this pertains to custom code, unfortunately we do not have any documentation or example save for the guide indicating which tags may be used:
https://guide.websitex5.com/en/support/solutions/articles/44002275655
Regarding the update of the order status, you would need to manually confirm the payment has gone through and then update the order on the website's control panel, as only integrated payment methods have the option "Process the purchase automatically after having received the payment".

Online translation:

Witaj Adrianie,
Ponieważ dotyczy to niestandardowego kodu, niestety nie dysponujemy żadną dokumentacją ani przykładami, poza poradnikiem wskazującym, których tagów można używać:
https://guide.websitex5.com/en/support/solutions/articles/44002275655
Jeśli chodzi o aktualizację statusu zamówienia, należy ręcznie potwierdzić, czy płatność została zrealizowana, a następnie zaktualizować zamówienie w panelu administracyjnym witryny. Tylko w przypadku zintegrowanych metod płatności dostępna jest opcja „Automatycznie przetwarzaj zakup po otrzymaniu płatności”.

Читать больше
Размещено От Eric C.