1. Go to this page and download the library: Download miladxandi/paymes-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
miladxandi / paymes-sdk example snippets
// Enter the details of the payment
$data = [
'orderId' => '1',
'price' => '1000',
'currency' => 'TRY',
'productName' => "Jascket",
'buyerName' => "User Name",
'buyerPhone' => "+1123457890",
'buyerEmail' => "[email protected]",
'buyerAddress' => "Temcula Road, California, Los Angeles",
'create_order_by_kiosk' => false,
];
//set default configurations
$paymes = new OrdersService('PUBLIC_KEY','SECRET_KEY');
//generate payment link
$result = $paymes->create($data);
//redirect to payment page
return redirect($result['returnUrl']);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.