wip payment kind of works with bugs

This commit is contained in:
asus
2024-03-06 13:53:47 +01:00
parent 917d51a097
commit 1661f16aff
15 changed files with 273 additions and 118 deletions

View File

@@ -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();