Inline checkout integration

This page demonstrates Juspay's ability to complete the checkout in the same page. If authentication is required, then it is conducted using a popup window (which has a substantially higher effective conversion rate).

  • 1

    Create Order


Purchase order is created at this point. This is required prior to payment.

curl \
    -u 7349068C05314727B08946A974C0D88F: \
    -d "amount=400.00" \
    -d "order_id=guest_ord_110011" \
    -d "customer_id=guest_user_101" \
    -d "" \
    -d "customer_phone=919988665522"
  • 2

    Pay using inline checkout


<script type="text/javascript" 

<!-- The payment form goes here. -->
<!-- You need to validate the form. -->
<!-- Ensure form elements don't have name attr. -->

<script type="text/javascript">
        payment_form: "#payment_form",
        success_handler: function(status) {},
        error_handler: function(error_code, error_message, bank_error_code, bank_error_message, gateway_id) {}