Beim Versuch, eine Dummy-Bestellung durch cURL zu erstellen, erhalte ich diesen Fehler. Ich habe versucht, die Bestellung per Postmaster zu erstellen. Ich bin Kopieren Sie einfach den Code aus dem woocommerrce documentation aber immer noch der Fehler comming der CodeWooCommerce Fehler zurückgegeben
curl -X POST -H "Content-Type: application/javascript" -H "Cache-Control: no-cache" -H "Postman-Token: 56032927-8d69-3630-aae9-0eb6823fe9b0" -d '{
"payment_method": "cod",
"payment_method_title": "Cash on Delivery",
"set_paid": true,
"billing": {
"first_name": "bhbhub",
"last_name": "Dnuoe",
"address_1": "969 Market",
"address_2": "",
"city": "beach",
"state": "Goa",
"postcode": "122002",
"country": "India",
"email": "[email protected]",
"phone": "1234567890"
},
"shipping": {
"first_name": "John",
"last_name": "Doe",
"address_1": "969 Market",
"address_2": "",
"city": "beach",
"state": "Goa",
"postcode": "94103",
"country": "US"
},
"line_items": [
{
"product_id": 100,
"quantity": 2
}
],
"shipping_lines": [
{
"method_id": "flat_rate",
"method_title": "Flat Rate"
}
]
}' "http://www.jersershor.com/wc-api/v3/orders?oauth_consumer_key=ck_638caaf46271a320075ecee01e89581f91644b98&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1484290102&oauth_nonce=cwidKMBu2uE&oauth_version=1.0&oauth_signature=VUMuuVRXsXKvyFhk97dQWj5bCEI%3D
"
Willkommen bei Stackoverflow! Um das Beste aus der Seite herauszuholen, ist es wichtig, gute Fragen zu stellen. Eine Anleitung zum Stellen von Fragen finden Sie unter: http://stackoverflow.com/help/how-to-ask –