# Connect PayHere & collect deposits

Accept card payments and deposits through Sri Lanka's trusted gateway.

Category: Growth
Estimated time: 5 min
Canonical: https://dinaya-lk.vercel.app/docs/guides/connect-payhere
Markdown: https://dinaya-lk.vercel.app/docs/guides/connect-payhere.md

## Steps

### 1. Get PayHere credentials

Sign up at payhere.lk if you do not have a merchant account. You will need your Merchant ID and Merchant Secret from the PayHere dashboard.

- Visual: mockup:dashboard-payhere

### 2. Open payment settings

In Dinaya, go to Dashboard → Settings and find the PayHere section. Paste your credentials and choose sandbox or live mode.

- Navigation hint: Settings
- Visual: mockup:dashboard-payhere

### 3. Set deposit rules per service

Go to Services → edit a service. Choose no payment, fixed deposit, percentage deposit, or full payment upfront.

- Navigation hint: Services
- UI target: services-row
- Visual: mockup:dashboard-services

### 4. Test a booking

Open your booking page in a private browser window and complete a test booking with PayHere sandbox before going live.

- UI target: booking-confirm-pay
- Visual: mockup:booking-confirm

### 5. Track payments

View payment status, deposits, and refunds under Dashboard → Payments and on each booking detail page.

- Navigation hint: Payments
- Visual: mockup:dashboard-payments

## Related Guides
- https://dinaya-lk.vercel.app/docs/guides/add-services
- https://dinaya-lk.vercel.app/docs/guides/dashboard-payments