Three steps to a working integration
You don't build a payment form or talk to a bank directly. The whole flow fits in a few API calls. A redirect to your success page is not a payment confirmation.
POST /payment-linksreturns anidand aurl- Redirect the customer to that
url - On the
payment_link.completedwebhook, first verify the signature (GetPay-Signature), then check thatstatusiscomplete,payment_statusispaidandamount_totalmatches your order, and skip anyGetPay-Event-Idyou have already processed. Only then fulfil the order