MemberPass
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

  1. Login to your PayHere Dashboard.
  2. Navigate to Integrations.
  3. Copy your Merchant ID.

Get Merchant Secret

  1. In the Integrations area, click "Add Domain/App".
  2. Set type to "Domain".
  3. Set "Domain Name" to your MemberPass project URL (or beta.memberpass.net).
  4. Save to see the Merchant Secret.

Create Business App

  1. Go to Settings -> API Keys.
  2. Click "Create API Key".
  3. Enter an App Name.
  4. Permissions: You MUST tick:
    • Payment Retrieval API
    • Subscription Management API
    • Item Management API
  5. Save to get App ID and App Secret.

Configure MemberPass

  1. In MemberPass, select PayHere.
  2. Enter Merchant ID, Merchant Secret, App ID, and App Secret.
  3. Click Save Changes.

Ensure your PayHere account is Verified by their support team to avoid payment disruptions.

Additional Resources

On this page