great bro...
Posts made by dev_lak
-
RE: Preview Issues, When share Lankadevelopers posts.
Thanks for reporting, will work on this issue.
-
RE: Sampath bank eke payment gateway udauwwak
hari test eka hadala eke issue ekk awot kyanna, sample code ekak denawa samanyen doc eke
-
RE: Sampath bank eke payment gateway udauwwak
gateway eke documentation eka tyenwd?
-
RE: Build Your Telegram Python Bot ( Sinhala Tutorial )
ftta bro,, keep it up
-
RE: Help me on Payment Gateway in PHP
<?php // A sample PHP Script to POST data using cURL // Data in JSON format $data = array( 'username' => 'tecadmin', 'password' => '012345678' ); $payload = json_encode($data); // Prepare new cURL resource $ch = curl_init('https://api.example.com/api/1.0/user/login'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); // Set HTTP Header for POST request curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Content-Length: ' . strlen($payload)) ); // Submit the POST request $result = curl_exec($ch); // Close cURL session handle curl_close($ch); ?>
this is a curl example.
-
RE: Help me on Payment Gateway in PHP
@Theesan in this doc, they have 4 checkout models, first decide what is suitable model for you,
- Hosted Checkout
- Hosted Session
- Direct Payment
- Batch
and then read the relavant integration guid,
and also this doc has some sample codes, see this - https://test-gateway.mastercard.com/api/documentation/downloads/index.html?locale=en_US -
RE: Help me on Payment Gateway in PHP
have you received the API doc from bank? all the details are in that document, if you share the API document, we can help you