wip payment kind of works with bugs
This commit is contained in:
@@ -15,18 +15,17 @@ export async function createOrder() {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
//"X-WP-Nonce": PLGNTLS_data.rest_nonce,
|
||||
},
|
||||
// use the "body" param to optionally pass additional order information
|
||||
// like product ids and quantities
|
||||
body: JSON.stringify({
|
||||
cart: [
|
||||
{
|
||||
id: "1234",
|
||||
quantity: "1",
|
||||
},
|
||||
],
|
||||
}),
|
||||
//// use the "body" param to optionally pass additional order information
|
||||
//// like product ids and quantities
|
||||
//body: JSON.stringify({
|
||||
// cart: [
|
||||
// {
|
||||
// id: "1234",
|
||||
// quantity: "1",
|
||||
// },
|
||||
// ],
|
||||
//}),
|
||||
});
|
||||
|
||||
const orderData = await response.json();
|
||||
|
||||
Reference in New Issue
Block a user