Developers

Developers

  • Docs
  • Help
  • Blog

›Integrations

Overview

  • Getting Started
  • Testing

Integrations

  • Simple link
  • Simple embed
  • React SDK
  • Embed SDK
  • Webhooks
  • REST Hooks

API

  • Authentication

/api

    /v1/current_company

    • GET /
    • PUT /
    • GET /stats

    /v1/customers

    • GET /
    • GET /:id

    /v1/payments

    • GET /
    • GET /:id

    /v1/plans

    • GET /
    • POST /
    • PUT /:id

    /v1/refunds

    • POST /

    /v1/subscriptions

    • GET /
    • GET /:id
    • DELETE /:id

    /v1/user

    • GET /

Simple link

The easiest way to start accepting payments

The easiest way to use Payhere is simply to copy the URL to your payment form and share it directly with your customers. That could be in an email, whats app message or by adding a link to your website. You can copy the link from the merchants admin when viewing your plans.

Copy plan link

Once you have this setup you can start receiving payments, and even use our webhooks to integrate further with your own system or website.

For more seamless integrations see our Embed SDK.

Payment amount

If you create a Donation type link, you can pass in the payment amount and disable the customer editing it, so you can calculate payment amount in your application before redirecting your customer to Payhere.

https://sandbox.payhere.co/your-co/payment-link-name?amount_in_cents=4200&hide_amount=yes

Custom fields

You can pass custom fields to your Payment Links through URL query parameters. If you have a custom field called User ID you would pass the query param custom_field_user_id=42 as follows

https://sandbox.payhere.co/your-co/payment-link-name?custom_field_user_id=42
← TestingSimple embed →
  • The easiest way to start accepting payments
  • Payment amount
  • Custom fields
Developers
Docs
Getting StartedEmbed SDKAPI Reference
Payhere
HelpSignup freeFeatures
More
Our BlogGitHubTwitter
Copyright © 2022 Payhere Payments Ltd