Open Murtoz-h opened 1 year ago
@Murtoz-h We have identified the issue and it will be fixed in the next release
In the meantime, do you have any suggestion about alternative way? Another request, please look at the "Additonal Information" section.
@Murtoz-h could you please try this code snippet and let me know is it working or not ?
const option = { "amount": 10000, "currency":"INR", "partial_payment": 1, "first_payment_min_amount": 50000, "receipt": "#test89", "notes": {"key1": "value3"} }
const payload = { url : "orders", data : option }
instance.api.post(payload).then(res=> console.log(res)).catch(err=> console.log(err))
@Murtoz-h could you please try this code snippet and let me know is it working or not ?
const option = { "amount": 10000, "currency":"INR", "partial_payment": 1, "first_payment_min_amount": 50000, "receipt": "#test89", "notes": {"key1": "value3"} }
const payload = { url : "orders", data : option }
instance.api.post(payload).then(res=> console.log(res)).catch(err=> console.log(err))
Thank you, it seems working. Please look into the "Additional Information section".
Steps to reproduce the behavior
During Creating order in Nodejs using option created by following code.
Expected behavior
if there are partial amount, create order with partial payment or create full payment order
Actual behavior
when there are partial payment, returned error notes["anything"] are extra document, error code 400. without partial payment, zero partial payment working as expected.
Code snippets
Node version
Node 16
Library version
2.8.4
Additional Information
currently I can create more than one order with single receipt, both through api and nodejs. Dont know its new feature or bug. Previously I could create only one order against one receipt.