API reference

PayToButton

What is Glider PayTo Button

Glider PayTo button is the easiest way to add PayTo as a payment method in your e-commerce, website or web-app.
Thanks to Glider SDK you can integrate a full PayTo Payment experience and keeping your branding and messaging consistent with only few lines of code.

Glider PayTo button is a javascript solution that will render and manage the entire payTo form and status updates flow within your website, no external page or i-frame.

paytobuttonintro

How it works

Integrate Glider PayTo Button to give your customers real-time payment using their PayID or bank account details.

Here’s a technical overview of the checkout flow:

PayTo button flow


  1. Fetching the Glider SDK
    Include the Glider SDK by adding a script tag to your checkout page. This step ensures that the necessary Glider components are available when the page renders.
  2. Initiating the PayTo Process
    When a customer clicks on the “PayTo” button, a payment form appears.
    The payment form provides a straightforward and user-friendly process for creating a PayTo agreement.
  3. Confirmation and Agreement Generation
    Upon confirmation from the customer, a callback is triggered.
    This callback contacts the Glider servers to generate a PayTo agreement and initiate the payment process.
  4. Real-time Status Updates
    The Glider SDK actively monitors changes in the payment agreement status.
    Users receive real-time notifications about the progress of their payment.
  5. Completion and Callback Handling
    When the payment process is complete (e.g., upon approval), an “Approve” callback is triggered.
    Use this callback to update your business logic to show a celebration page to acknowledge successful payment or to handle any error responses gracefully.
  6. Seamless Webhook Integration
    Glider seamlessly sends payment progress events via webhooks.
    Configure your desired endpoint to receive these webhook notifications.

How Glider presents optimal payTo user experience flow

payTo-illustration

The Glider PayTo button seamlessly integrates into your existing checkout process, allowing you to maintain your brand’s style and messaging. Designed for safety and speed, the PayTo experience guides users through this new payment method.

The PayTo experience ensures a smooth transaction process where users are guided step-by-step, minimizing friction.
The interactive Glider PayTo wizard keeps users informed with real-time status updates prevent confusion.

Thanks to PayTo, merchants receive funds directly in their bank accounts without hefty surcharge fees—just efficient, secure payments.

Know before you code

Get your credentials

Set up your webhook endpoints