I am developing a one page order in WordPress with woocommerce as platform. I use jquery ajax to submit the details.
Before I can successfully submit the details of checkout, I must fist go through a url https://www.mywebsite.com/?wc-ajax=update_order_review
and initialize these values:
security: hf7f684bw1
postcode: 8000
city: asdas
address: adasd
s_postcode: 8000
s_city: asdas
s_address: asdas
has_full_address: true
post_data: billing_customer_type=Company&billing_company_name=Test&billing_org_nr=123213&billing_address_1=adasd&billing_city=asdas&billing_postcode=8000&billing_phone=1213123&billing_email2=aaa%40gmail.com&_wpnonce=3c1080kf3&_wp_http_referer=%mywebsite%2Fcheckout%2F
This security: hf7f684bw1 value is important so I can submit successfully the checkout details.
Do you know how can I dynamically generate the checkout key/code so that I don't have to manually set it every 24 hours?