composer require ippopay/ippopayDocumentation of Ippopay's API is available at https://docs.ippopay.com/php-client
Initiate the Ippopay instance with public_key & secret_key. You can get the keys from the merchant dashboard (https://app.ippopay.com/settings/api)
require('./vendor/ippopay/ippopay/Ippopay.php');
$api = new IPOrder('YOUR_PUBLIC_KEY','YOUR_SECRET_KEY');$order = $api->createOrder([
"amount"=> 1.00,
"currency"=> "INR",
"payment_modes"=> "cc,dc,nb,upi",
"return_url"=> "",
"customer"=> array(
"name"=> "Test",
"email"=> "[email protected]",
"phone"=> array(
"country_code"=> "91" ,
"national_number"=> "9876543210"
)
)
]);
$orderData = json_decode($order, true);
$orderID = $orderData['data']['order']['order_id']; // Get your ORDER ID Here
print_r($orderID);
$orderTransactionDetails = $api->orderDetails('ORDER_ID'); // Get Transaction details of OrderThis component is written by IppoPay.
IppoPay 2021 © All Rights Reserved. IppoPay