Getting Started
Payhere makes it simple to integrate with your existing service. We are always improving our integrations, so keep an eye out here for changes.
Simple link
The most basic way to get started with Payhere is by emailing your customers a link to a payment form, or setting up a link on your website.
Simple embed
Our simple embed is the next level up, but it still only requires two lines of code
<button data-payhere-embed="https://app.payhere.co/altlabs/coffee">Payhere</button>
<script src="https://payhere.co/embed/embed.js"></script>
Using with React
We have a react plugin available, we think it’s the easiest way to collect one-off and recurring payments using React.
<Payhere
selector="#payhere-modal"
embedURL={"https://app.payhere.co/altlabs/coffee"}
open={true}
onSuccess={() => {}}
onFailure={() => {}}
onClose={() => {}}
/>
JavaScript Embed SDK
Our JavaScript embed SDK allows advanced integrations in all frameworks.
Payhere.launch({
embedURL: "https://app.payhere.co/altlabs/coffee",
onSuccess: () => {},
onFailure: () => {},
onClose: () => {}
})
Webhooks
Webhooks provide a secure way for us to communicate payment and customer information with your backend.
API
Use our API to build advanced integrations.