Razorpay recurring payment through token

  laravel, payment, php, razorpay, token

I am trying to make a recurring payment through charge token.I want to implement this by API.
I am using the below code make fist payment and save token this is working fine.

 <script src="https://checkout.razorpay.com/v1/checkout.js"
                data-key="RAZORPAY_KEY"
                data-amount="20000"
                data-name="Recurring"
                data-description="Test Recurring payment"
                data-image="logo.png"
                data-prefill.name="User_Name"
                data-prefill.email="User Email"
                data-description="Total Payable Amount"
                data-order_id ="ORDER_ID"
                data-customer_id="CUSTOMER_ID"
                data-recurring ="1"
                data-theme.color="#55A410"></script>

I am able to charge payment through dashboard.
I want to create copy of previous order and deduct payment through token that was saved in first payment.

enter image description here

Source: Ask PHP

LEAVE A COMMENT