Skip to content

Checkout API

The PayHere Checkout API is the most commonly used method for processing a checkout. To process a checkout using this API, call the following method within your controller:

use Illuminate\Http\Request;
use App\Models\Order;

class CheckoutController extends Controller
    public function checkout(Request $request)
        $order = Order::find('ORD1234');
        return $request

Released under the MIT License.