PHP Client
The Ippopay Payments plugin allows you to accept credit card, UPI, Netbanking and debit card payments via Ippopay payment gateway.
Last updated
require('./vendor/ippopay/ippopay/Ippopay.php');
or
use Ippopay\IPOrder\IPOrder;
$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"=> "test@gmail.com",
"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 Order