Skip to content

Accept Payments

Sangho offers several methods to integrate payments into your business, from the simplest to the most customizable.

1. Via a Payment Link

The fastest method, with no code required. Create a link from the dashboard, share it by SMS, email, WhatsApp, or QR code. The buyer is redirected to a page hosted by Sangho.

2. Via the Hosted Checkout Page

Integrate the Sangho JS button on your site in 2 lines of code. No backend required — the payment form appears as a popup or redirect to checkout.sangho.ga.

3. Via REST API

For advanced integrations, create a payment intent server-side, then a checkout session or mount the form directly in your interface with the JS SDK.

4. Via QR Code

From a payment link, generate a QR code to print and display at the point of sale. The buyer scans the QR code with their smartphone and completes the payment.

5. Offline Mode (Sangho Terminal)

Note

Availability: Q4 2028. Sangho Terminal unifies online and physical point-of-sale payments (NFC, Mobile Money, Card).

Method Comparison

MethodCode requiredBackendUse case
Payment linkNoneNoFreelancer, SMB
Hosted checkout🟡 HTML onlyNoShowcase website
REST APIYesYesCustom e-commerce
QR CodeNoneNoPoint of sale
Terminal (2028)SDKYesPhysical commerce

Checkout JS Integration

html
<script src="https://js.sangho.ga/v1/sdk.js"></script>
<button id="pay-btn">Pay 5,000 XAF</button>
<script>
const sangho = new Sangho('pk_live_xxxx');
document.getElementById('pay-btn').onclick = () => {
  sangho.checkout.open({
    amount: 5000,
    currency: 'XAF',
    onSuccess: (tx) => console.log('Paid!', tx)
  });
};
</script>