Closed chickenn00dle closed 1 month ago
Thanks for the review @miguelpeixe!
Once I authenticate the nonce provided on page load will no longer be valid.
Ah whoops! I always forget about the transition in login state 🤦 . I moved the nonce to the checkout script and pulled in modal.js
as you suggested: https://github.com/Automattic/newspack-blocks/pull/1923/commits/7a1c99ac92428484667f5e187da7a3f53ab58f95
All Submissions:
Changes proposed in this Pull Request:
Closes https://app.asana.com/0/1207817176293825/1208620127411764/f
This PR adds an ajax request to empty cart when modal checkout is abandoned.
How to test the changes in this Pull Request:
test.site/cart
epic/ras-acc
the item will still be present. On this branch, the cart should be empty.Other information: