Payment Button

Integrate a custom payment button in your app by opening a payment link with two parameters: amount and redirect_url.

1. Requirements

Before integrating the button:

  1. Download the Kontigo app.

  2. Generate a payment link — the app will provide you with a URL like:

    https://kontigo.lat/pay/${slug}
  3. Append the required parameters to the link:

    • amount – e.g., 10 for $10.00 USDc
    • redirect_url – e.g., https://yourapp.com/return

2. URL Format

https://app.kontigo.lat/pay/${slug}?amount=10&redirect_url=https://yourapp.com/return

Parameters:

  • slug: Provided by the app when you create the link.
  • amount: Decimal (USDc) — the amount to charge.
  • redirect_url: Where the user should be redirected after payment.

3. Integration Example

function openKontigoPayment({ slug, amount, redirectUrl, openUrl }) {
  const url = `https://kontigo.lat/pay/${slug}?amount=${amount}&redirect_url=${encodeURIComponent(redirectUrl)}`;

  // This URL must be opened in an external or in-app browser
  openUrl(url); // e.g., window.open, Linking.openURL, or openBrowserAsync
}

4. Button Design

You must use the official button design provided by Kontigo to ensure brand consistency.