Payment Methods
PayHere
Connecting PayHere for Sri Lankan payments
Overview
PayHere is a comprehensive payment aggregator in Sri Lanka. MemberPass supports automated recurring billing with PayHere via a specific "Business App" setup.
Setup Instructions
Get Merchant ID
- Login to your PayHere Dashboard.
- Navigate to Integrations.
- Copy your Merchant ID.
Get Merchant Secret
- In the Integrations area, click "Add Domain/App".
- Set type to "Domain".
- Set "Domain Name" to your MemberPass project URL (or
beta.memberpass.net). - Save to see the Merchant Secret.
Create Business App
- Go to Settings -> API Keys.
- Click "Create API Key".
- Enter an App Name.
- Permissions: You MUST tick:
- Payment Retrieval API
- Subscription Management API
- Item Management API
- Save to get App ID and App Secret.
Configure MemberPass
- In MemberPass, select PayHere.
- Enter Merchant ID, Merchant Secret, App ID, and App Secret.
- Click Save Changes.
Ensure your PayHere account is Verified by their support team to avoid payment disruptions.