retrieving user that makes the purchase with nonce ok
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -12,6 +12,7 @@ export async function onApprove(data, actions) {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"X-WP-Nonce": PLGNTLS_data.rest_nonce,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user