Payments App Stability | Razorpay Integration Usage

Hi there,

  1. Can anyone tell me is the Payments app stable now, can we start working on the same in v14? As there are no releases and still in develop branch.

  2. I started working on the Razorpay Checkout Integration as per the documentation but it’s so minified that I’m unable to get certain points.
    a. Include checkout script in your code: Insert the following script on your page The checkout script automatically fetches the razorpay checkout script and wraps their API for some syntactic sugar.
    It says you need to install it but unable to get it how?
    I tried to install it another way as mentioned in another doc found in the code, the error in this case was invalid file path


    I tried multiple ways to install it but it’s not working like using frappe.require.

  3. Inititate the payment in client using checkout API:

function make_payment(ticket) {
    var options = {
        "name": "<CHECKOUT MODAL TITLE>",
        "description": "<CHECKOUT MODAL DESCRIPTION>",
        "image": "<CHECKOUT MODAL LOGO>",
        "prefill": {
            "name": "<CUSTOMER NAME>",
            "email": "<CUSTOMER EMAIL>",
            "contact": "<CUSTOMER PHONE>"
        },
        "theme": {
            "color": "<MODAL COLOR>"
        },
        "doctype": "<REFERENCE DOCTYPE>", // Mandatory
        "docname": "<REFERENCE DOCNAME" // Mandatory
    };

    razorpay = new frappe.checkout.razorpay(options)
    razorpay.on_open = () => {
        // SCRIPT TO RUN WHEN MODAL OPENS
    }
    razorpay.on_success = () => {
        // SCRIPT TO RUN ON PAYMENT SUCCESS
    }
    razorpay.on_fail = () => {
        // SCRIPT TO RUN ON PAYMENT FAILURE
    }
    razorpay.init() // Creates the order and opens the modal
}

so I want to know where to and how to actually call this piece of code and what to pass in ticket arg as it’s not used anywhere.

Tried multiple ways to execute the whole process but was not successful, need to take a quick decision about whether to integrate the APIs by myself or use the existing payments app.

Other than this the controller methods are clear.