How to properly integrate Payhere to Laravel ? Need Help
-
can you help me the integrate payhere to laravel
-
You can refer their API documentation
https://support.payhere.lk/api-&-mobile-sdk/payhere-checkout -
@Grasshopper I try this. I have some issues with this.
-
what is the issue post here then we can fix
-
This post is deleted! -
@root I'm using this reference to integrate payhere to laravel https://support.payhere.lk/api-&-mobile-sdk/payhere-checkout
then I create a simple form the same as the documentation in payhere. also, create a separate controller for define payment routing and define notify_url, return_url, and cancel_url.
the notify URL method I added to the given code sample in payhere.
when I try to pay some amount, the transaction was perfect works. payhere sandbox account record the payment history and I received payment receipt via email.
but the thing is, after the payment process the notify URL not working properly.
what is the problem that doesn't work notify URL?
-
what do you want to do with notify_url >??
-
I want to save my order details (product details and customer details) store database and update payment status as success
-
use return_url go back to your application.
-
@Coding-Labs notify_url url eke request method eka POST da thiyenneh balanna. netnam Route::any('notify_url', function()) daala Log ekak daala balanna request eke monawada enneh kiyala.
-
@Coding-Labs can you specify the error? you need to skip csrf token checking for that return url