We are trying to make it so that COD orders can be created without going through checkout
We are able to create orders with the JSON object shared below. However, the order gets created with this popup as shown in attached image saying “Cash on Delivery (COD) is still processing payment”. We want this order to not be “processing” since it is a COD order. How do we accomplish that?
Currently, what is happening is that this order is not getting pulled by our ORM, and our suspicion is because of this pending payment status. Payment will be collected by delivery partner at time of delivery, so its status is “pending”, but not “processing”
{ "order": {
"customer": {
"first_name": "my name",
"last_name": "my name",
"tags": "mobile_customer"
},
"gateway": "Cash on Delivery (COD)",
"processing_method": "manual",
"payment_method":"Cash on Delivery (COD)",
"send_receipt":true,
"transactions": [
{
"kind": "sale",
"status": "pending",
"amount": 24206,
"gateway":"Cash on Delivery (COD)"
}
],
"line_items": [{"quantity":1,"variant_id":"40601555337390"}, {"quantity":1, "variant_id":"41633485389998"}],
"financial_status": "pending",
"contact_email": "",
"email": "nnn@gmail.com",
"phone": "+914144568890",
"source_name": "MOBILE_APP",
"tags": "COD, ORDERED_FROM_APP",
"shipping_address": {
"address1": "dsdsds",
"address2": "jamshedpur",
"city": "East Singhbhum",
"company": null,
"country": "India",
"firstName": "Jane shipping",
"lastName": "this test order",
"latitude": 22.7740354,
"longitude": 86.1828047,
"name": "cancel this test order",
"phone": "+911234567890",
"province": "Jharkhand",
"zip": "831006"
},
"billing_address": {
"address1": "dsdsds",
"address2": "jamshedpur",
"city": "East Singhbhum",
"company": null,
"country": "India",
"firstName": "billing address",
"lastName": "this test order",
"latitude": 22.7740354,
"longitude": 86.1828047,
"name": "cancel this test order",
"phone": "+911234567890",
"province": "Jharkhand",
"zip": "831006"
}
}
}
This is the issue I see on the order:
