????? ?????? E-commerce ?????????? ??????? ??????????????? ????? ???? ?????? ??????? ??????? ????? Cash on Delivery (COD) ????????? ?????? ???? ????? ???????. ??????????? order ?? reject ????? ?? return ??? ???? courier fees ?????? ??? ???? ??????. ??? ???? ?????? Online Payment Gateway ???? ??????? ???????? ??? ?????? 100% ??? ??????? ???.
PayHere ??? ?????? ?? ?? ???????? ????
PayHere ??? ????? ???? ?? ?????? (Central Bank of Sri Lanka) ?????? ??????? ???? ??? ???? ????????? Aggregate Payment Gateway ???????. ??? ??? integration ?????? ?????????????? ?????? ????? ????? ?????????? PayHere ????? ??????? ????:
- Credit / Debit Cards: Visa, Mastercard, American Express (Amex).
- Mobile Wallets: FriMi, Genie, eZ Cash, mCash.
- Internet Banking: Sampath Vishwa, Commercial Bank, HNB direct bank transfers.
????? 1: PayHere Merchant Account ???? ????? ?????
PayHere ????? ??????? ?? ?????? ??? ????????? ????????????? ?????????? ?? ????? ?????. ?????? ??????? ??????????:
- Business Registration (BR) ??????.
- ?????????? ????? ??? Corporate Bank Account ??? Bank Statement ?? Passbook ???????.
- ??????????????? ????? ?????????? (NIC) ?? ????? ???? ????????.
- Terms & Conditions, Privacy Policy ?? Refund Policy ?????? ????? ???? ???????.
????? 2: Technical Integration Architecture
PayHere ??????????? ????? ????? 4 ???? ??????? ??????? checkout flow ???? ?????:
- Checkout Form: ??? website ????? amount ??, order ID ?? ?? customer details ????? PayHere checkout URL ??? POST request ???? ????.
- Payment Modal: ??????????? PayHere ??????? gateway ?? ??? ?? card details ?????? ?? OTP ?? ????????? ????.
- Return URL: ????? ?????? ?? ??? ??????????? ???? ??? ???? ?????? 'Thank You' ?????? redirect ??.
- IPN (Instant Payment Notification): PayHere ???????????? ??? backend API ??? server-to-server webhook ???? ??? ????? ??????? ?? ?? ?????? ????.
????? ????? client-side JavaScript ????? ????? order status ?? "Paid" ??? update ???????. PayHere ?????? ??? ??? Merchant Secret ?? ?????? ?? hash signature ?? server-side ????? calculate ?????:
IPN webhook ??? ????? hash ?? ??? server ??? generate ?? hash ??? ???? ??? ????? order ?? deliver ?????? ????? ????. ??? Man-in-the-Middle ??????? ????????????? ???????.
Sandbox Testing ?? Live Deployment
PayHere ????? Sandbox mode ?? ?????? ??? ??? ???, dummy credit card numbers ?????? ?????? checkout ???????????, email notifications ?? database updates ?????? ???? ?????? ?????? ???? ??????? ?? ????? ???. ??????????? ??? Sandbox credentials ?????? Live Merchant ID ?? ?? Secret ?? ???? production ??? deploy ?? ???.
??? Website ????? PayHere Integration ???? ?????? ????????
Infinite Creative ???? E-Commerce Package ?? ??? PayHere, WEBXPAY ?? Direct Bank IPG ???????? setup ?? ??? 3?? ????? ???????? ??? ?? ???? ????.
?? PayHere Setup ??? ??????? (+94 78 971 4912)