Introduction
The Intermediate RESTful API allows for communication with the PayHere RESTful API. This approach is especially advantageous for mobile app developers who want to avoid direct integration with PayHere, making the integration process smoother and more efficient.
Endpoints
# Retrieve paymentsGET /payhere/api/payments/:id # Charge a paymentPOST /payhere/api/payments/charge # Capture a paymentPOST /payhere/api/payments/capture # Refund a paymentPOST /payhere/api/payments/refund # List all subscriptionsGET /payhere/api/subscriptions # Retrieve a subscriptionGET /payhere/api/subscriptions/:id # Retry a subscriptionPOST /payhere/api/subscriptions/:id/retry # Cancel a subscriptionDELETE /payhere/api/subscriptions/:id