Five ways to connect Payhere

Connect paymentsto everything else.

Trigger no-code workflows with Zapier, open checkout inside your website, build through the API, or keep your backend and team in sync with webhooks and Slack.

No code with ZapierServer-side APISigned events
Payhere connected to Zapier, the API, Embed SDK, webhooks and Slack.
Payhere
Payhere
Payments
Zapier logo
Zapier
No-code workflows
Payment Received →
API
Custom systems
Embed SDK
Checkout on-site
Webhooks
Signed events
Slack logo
Slack
Team alerts
payment.successsubscription.cancelledpayment.failed
Choose your route

Meet your stack where it already is.

Start with the way your business works today. Each route connects the same Payhere payments without forcing a platform rebuild.

Route 01

No code

Zapier + Slack

For founders and operations teams that want payments to update the tools and people they already rely on.

Technical effortNone
Route 02

Add to your website

Embed SDK

For teams that want customers to open a Payhere checkout without leaving the merchant website.

Technical effortA few lines of JS
Route 03

Build something custom

API + Webhooks

For product and backend teams connecting payments to an internal system, customer journey or custom product.

Technical effortDeveloper
Zapier logo
No-code flagship

Let a payment start the next job.

Zapier connects Payhere to thousands of tools without code. When a payment arrives, the customer information can move into the spreadsheet, CRM or delivery workflow your business already uses.

  • Add successful payments to a spreadsheet
  • Start onboarding after the first payment arrives
  • Add or update a customer in your CRM
  • Trigger fulfilment or grant course access
  • Begin follow-up when a subscription is cancelled
Explore Payhere on Zapier
Example Zapier automation triggered by a payment received in Payhere.
Workflow builder
ON
Zapier logo
When this happens
Payment Received
in Payhere
Automatically do this
Add row to Google Sheets
Customer, amount and payment reference
Also starts onSubscription Cancelled
Payhere actionCreate Plan
Add to your website

Open checkout without sending customers away.

The Embed SDK launches a Payhere payment link over your existing website. Your page stays visible while Payhere handles the checkout experience.

  • Load with a script tag or npm package
  • Prefill the customer name and email
  • Pass an amount into a customer-set-price plan
  • Pass visible or hidden custom-field values
  • Handle success, failure and close callbacks
Read the Embed SDK docs
Merchant website with a Payhere checkout open as an embedded modal.
northfork.studio/membership
North ForkClasses · About
Join now
North Fork Studio
Monthly membership
£40.00
Name
Alex Morgan
Email
alex@example.com
Card
4242 4242 4242 4242
Pay £40.00
embed.jsJavaScript
PayHere.launch({
  embedURL: "https://sandbox.payhere.co/altlabs/coffee",
  customerName: "Alex Morgan",
  customerEmail: "alex@example.com",
  amountInCents: 4000,
  customFields: { member_id: "MEM-2048" },
  onSuccess: payment => console.log(payment),
  onFailure: error => console.error(error),
  onClose: () => console.log("Checkout closed")
})
Build something custom

Build with the Payhere API.

Connect Payhere to an internal product or custom workflow through resources for customers, payments, plans, refunds and subscriptions.

Keep API keys on the server

The API is not supported for browser code. Store the key in a secure server-side environment and send it as a Bearer token in the Authorization header.

Read the API authentication docs
Server-side API request, successful response and available resource groups.
Server requestGET
curl -X GET https://api.payhere.co/api/v1/user \
  -H "Authorization: Bearer ${PAYHERE_API_KEY}"
200 OK
Response
Authenticated
application/json
API resources
/customers/payments/plans/refunds/subscriptions
Stream of signed Payhere webhook events delivered to a backend.
Webhook endpoint live
POST /payhere
10:42:08payment.success200
10:45:31subscription.created200
11:03:19payment.failed200
11:14:52subscription.cancelled200
Signature verified
raw request body + shared secret
→ HMAC digest → X-Signature match
Respond immediately

Let signed events wake up your backend.

Payhere sends activity to your endpoint as it happens. Verify the signature against your shared secret before your application acts on the event.

  • Grant access after a successful payment
  • Start fulfilment
  • Update an internal customer record
  • Begin failed-payment follow-up
  • React when a subscription is cancelled
Read the Webhooks docs
Slack logo
Instant awareness

Know the moment you get paid.

Send immediate payment notifications to Slack so the right people can respond without watching the Payhere dashboard.

Slack channel showing a successful Payhere payment notification.
payments
Slack logo
Payhere10:42 AM

Payment received from Alex Morgan

Studio membership
£245.00
payment.success · SUB816
One payment, one next step

Connect your first workflow.

Start with Zapier, add checkout to your site, or build directly into the system your team already uses.