retrieving user that makes the purchase with nonce ok

This commit is contained in:
asus
2024-02-24 17:40:33 +01:00
parent 61b3f9f2f5
commit 1464562379
3 changed files with 7 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ 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

View File

@@ -12,6 +12,7 @@ export async function onApprove(data, actions) {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-WP-Nonce": PLGNTLS_data.rest_nonce,
},
});