mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 16:24:33 +08:00
Do not send whole order in create order response
This commit is contained in:
parent
df81e5e411
commit
bee2a8d5ba
2 changed files with 17 additions and 4 deletions
|
@ -109,7 +109,7 @@ class CheckoutActionHandler {
|
|||
const input = document.createElement('input');
|
||||
input.setAttribute('type', 'hidden');
|
||||
input.setAttribute('name', 'ppcp-resume-order');
|
||||
input.setAttribute('value', data.data.purchase_units[0].custom_id);
|
||||
input.setAttribute('value', data.data.custom_id);
|
||||
document.querySelector(formSelector).appendChild(input);
|
||||
return data.data.id;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue