razorpay / razorpay-ruby

Razorpay Ruby SDK
https://rubygems.org/gems/razorpay
MIT License
64 stars 59 forks source link

Invoice doc correction #173

Closed ankitdas13 closed 2 years ago

ankitdas13 commented 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