Skip to content

miladxandi/paymes-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple run for Laravel

// Enter the details of the payment
$data = [
    'orderId' => '1',
    'price' => '1000',
    'currency' => 'TRY',
    'productName' => "Jascket",
    'buyerName' => "User Name",
    'buyerPhone' => "+1123457890",
    'buyerEmail' => "username@example.com",
    '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']);

About

Paymes payment gateway PHP SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages