payment gateway eka wadakaranawa sandbox eke. payment ekat acc eke pennawa. e unata return_url , cancel_url, notify_url mokut wada karanne nane. checkout page ekatama tamai apahu enne. payment complete unama alert eka nam pennawa pahala script eken
payhere.onCompleted = function onCompleted(orderId) {
alert("Payment completed. OrderID:" + orderId);
// Note: validate the payment and show success or failure page to the customer
};
notify url route eke Route::post('/payhere-notify', [HomeController::class, 'payhereNotify']);
me wediyata dumy data tikak dala baluwa notify ekata data aot save wenawada balanna. e unata notify, return url mokut wada na. man live server ekaka test karanne. domain ekat sandbox acc ekata dala thinne. redirect eka wada karanne natte mokada kiyala kiyanawada