Sampath bank eke payment gateway udauwwak
-
Sampath bank eke payment gateway eka php laravel ekka integrate kala kauru hari innawada. komada karanne meka.
-
mkkda aula?
-
mn danne ne kohomada karanne kiyala. pycorp eken karanna tiyenne. mn kalin karala ne. loku idea ekak ne mata integrate karanne kohomada kiyala.
-
gateway eke documentation eka tyenwd?
-
ow eke wisthara okkoma ewwa. eke widihata mn test ekak hadanawa
-
hari test eka hadala eke issue ekk awot kyanna, sample code ekak denawa samanyen doc eke
-
meke laravel walata library ekak ne. Javascript walin karanne. Order ekak submit purchace kalama bank order eka wenne javascript ekenda. order eka php request ekak widihata yawanawada server ekata
-
@jtta6 machan mekath sampath bank ekema thmai. balanna me values tikama thamai egoillonge main payment gateway ekatath yawanne. example ekak widiyata meka balanna
https://support.payhere.lk/api-&-mobile-sdk/payhere-checkout
-
Is there any tutorials about these??
-
@Munasinghe-Arachchige-Tharindu-Dhananjaya
@dev_lak can we create tutorials for srilankan payment gateway integration with php and node ??
-
@root is they have public Gateway documentation?
-
we have to find the informations, i have a friend in sampath bank i'll try to get information from him.
-
@root then we can make tutorials, but we need a sandbox account too for test is it working or not
-
i think they don't provide sandbox for public, but we can create a process of intergration
-
@root hmm,, i also try to find api documentations, and i will make tutorials for php, node and add to github
-
thanks bro.
-
meka balapn machn meke thiyanawa https://paycorp-international.gitbook.io/quick-web/
awulak awoth kiyapn mn lagadi paycorp eka use kara. -
@dev_lak
Can you help me to add three client IDs to the Sampath bank payment gateway plugin. It has only one client ID at a time.How can I add 3 client IDs to wp plugin -
@achila-nilaweera bro WP plugin eka edit karanna wei ehnam, mn WP gananam wadiya dnnha bro
-
Payhere api url ekata POST request ekak yawanna tiyenne. HTML form ekak hadala eka submit karanna thiyenne. Form eke action ekata danna ona Payhere API URL eka. Oyage domain eka payhere eke whitelist karanna ona kalin. ethakota oyage domain eke idan POST request yawanna puluwan. ekata aniwayen ona fields tiyenawa. (email, name, address, amount wage ewa). me tiyenne man karapu widiya.
.env file
PAYHERE_MERCHENT_ID=24333554141 PAYHERE_SECRET=8xxxxxxxxxxxxxxxxxxxxxxxxxJ7J PAYHERE_API_URL=https://sandbox.payhere.lk/pay/checkout
config/payhere.php
return [ 'api_url' => env('PAYHERE_API_URL', 'https://sandbox.payhere.lk/pay/checkout'), 'merchant_id' => env('PAYHERE_MERCHENT_ID', 'no_merchent'), 'secret' => env('PAYHERE_SECRET', 'no_secrete'), 'return_url' => env('PAYHERE_RETURN_URL', config('app.url') . '/checkout/return'), 'notify_url' => env('PAYHERE_NOTIFY_URL', config('app.url') . '/checkout/notify'), 'cancel_url' => env('PAYHERE_CANCEL_URL', config('app.url') . '/checkout/cancel'), ];
Submit Order details (amount, items, name, etc)
<form class="width:100%" method="post" action="{{ config('payhere.api_url')}}"> @csrf <input type="hidden" name="merchant_id" value="{{ config('payhere.merchant_id') }}"> <input type="hidden" name="return_url" value="{{ config('payhere.return_url') }}"> <input type="hidden" name="cancel_url" value="{{ config('payhere.cancel_url') }}"> <input type="hidden" name="notify_url" value="{{ config('payhere.notify_url') }}"> <input type="hidden" name="order_id" value="{{ $order->reference }}"> <input type="hidden" name="items" value="My Packages"> <input type="hidden" name="currency" value="{{ $order->currency }}"> <input type="hidden" name="amount" value="{{ $order->amount }}"> <input type="hidden" name="first_name" value="{{ $order->first_name }}"> <input type="hidden" name="last_name" value="{{ $order->last_name }}"> <input type="hidden" name="email" value="{{ $order->email }}"> <input type="hidden" name="phone" value="{{ $order->phone }}"> <input type="hidden" name="address" value="{{ $order->address }}"> <input type="hidden" name="city" value="{{ $order->city }}"> <input type="hidden" name="country" value="{{ $order->country }}"> <input type="hidden" name="hash" value="{{ $order->hash }}"> <input type="submit" class="" value="Pay Now"> </form>
-