IppoPay
Search…
IppoPay
Introduction
Client Side Integration
Javascript Integration
React JS
Angular JS
PHP Integration
Server Side Integrations
REST API
PHP Client
Node JS SDK
eCommerce Integrations
WooCommerce
Opencart
PrestaShop
Magento
Mobile SDK Integrations
Android SDK
iOS SDK
Flutter
UPI Intent (Self Hosted)
Payouts
Account
Beneficiary
Transfers
Powered By
GitBook
PHP Client
The Ippopay Payments plugin allows you to accept credit card, UPI, Netbanking and debit card payments via Ippopay payment gateway.
Ippopay PHP Client
Installation
1
composer
require ippopay/ippopay
Copied!
Prerequisites
PHP v5.3 or higher
ippopay-php
Ippopay client PHP API. The Api follows the following practices:
Namespaced under Ippopay\IPOrder\IPOrder
API throws exceptions instead of returning errors
Options are passed as an array instead of multiple arguments wherever possible
All requests and responses are communicated over JSON
A minimum of PHP 5.3 is required
Basic Usage
Initiate the Ippopay instance with
public_key
&
secret_key
. You can get the keys from the merchant dashboard (
https://app.ippopay.com/settings/api
)
1
require
(
'./vendor/ippopay/ippopay/Ippopay.php'
);
2
3
or
4
5
use
Ippopay
\
IPOrder
\
IPOrder
;
6
7
$api
=
new
IPOrder
(
'YOUR_PUBLIC_KEY'
,
'YOUR_SECRET_KEY'
);
Copied!
Create an Order
1
$order
=
$api
->
createOrder
([
2
"amount"
=>
1.00
,
3
"currency"
=>
"INR"
,
4
"payment_modes"
=>
"cc,dc,nb,upi"
,
5
"return_url"
=>
""
,
6
"customer"
=>
array
(
7
"name"
=>
"Test"
,
8
"email"
=>
"
[email protected]
"
,
9
"phone"
=>
array
(
10
"country_code"
=>
"91"
,
11
"national_number"
=>
"9876543210"
12
)
13
)
14
]);
15
$orderData
=
json_decode
(
$order
,
true
);
16
$orderID
=
$orderData
[
'data'
][
'order'
][
'order_id'
];
// Get your ORDER ID Here
17
print_r
(
$orderID
);
Copied!
Get Transaction Details of Order
1
$orderTransactionDetails
=
$api
->
orderDetails
(
'ORDER_ID'
);
// Get Transaction details of Order
Copied!
Author
This component is written by
IppoPay
.
License
IppoPay 2021 © All Rights Reserved.
IppoPay
Server Side Integrations - Previous
REST API
Next - Server Side Integrations
Node JS SDK
Last modified
1yr ago
Copy link
Contents
Ippopay PHP Client
Installation
Prerequisites
ippopay-php
Author
License