Closed ankitdas13 closed 2 years ago
Create an invoice : update
Update an invoice: Try this code para_attr = { "line_items": [ { "id": "li_JpNz5IZZcAtRFU", "name": "Book / English August - Updated name and quantity", "quantity": 1 }, { "name": "Book / A Wild Sheep Chase", "amount": 200, "currency": "INR", "quantity": 1 } ], "notes": { "updated-key": "An updated note. done" } }
Razorpay::Invoice.edit(invoiceId,para_attr)
Send notification : update
Create an invoice : update
Update an invoice: Try this code para_attr = { "line_items": [ { "id": "li_JpNz5IZZcAtRFU", "name": "Book / English August - Updated name and quantity", "quantity": 1 }, { "name": "Book / A Wild Sheep Chase", "amount": 200, "currency": "INR", "quantity": 1 } ], "notes": { "updated-key": "An updated note. done" } }
Razorpay::Invoice.edit(invoiceId,para_attr)
Send notification : update