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
On this page
  • Configuration
  • Create Order
  • Open the payment view
  • Close the payment view
  • Response Handlers

Was this helpful?

Javascript Integration

The Ippopay Payments plugin allows you to accept credit card, UPI, Netbanking and debit card payments via Ippopay payment gateway.

PreviousIntroductionNextReact JS

Last updated 4 years ago

Was this helpful?

Configuration

Initialize your object by passing your order id and public key:

Get Order Id from Create order api from next step

<script type="text/javascript" src="https://js.ippopay.com/scripts/ippopay.v1.js"></script>
<script type="text/javascript">
var order_id;
var options = {
    "order_id" : order_id, //Get order_id params value from Create Order from next step
    "public_key" : "pk_live_xxxxxxxxx"
}
var ipay = new Ippopay(options);

You can get your Public and Secret key from the api .

Create Order

Create order from Server side using below API and get the Order id. to know how to create a order.

Open the payment view

Use the below code to open the payment view for the customers to pay.

ipay.open();

Close the payment view

Use the below code to close the payment view.

ipay.close();

Response Handlers

For Success and Error handlers use the below handler function for payment response

ippopayHandler(response, function (e) {
    if(e.data.status == 'success'){
        console.log(e.data)
    }
    if(e.data.status == 'failure'){
        console.log(e.data)
    }
});
dashboard
Click here