Wednesday, September 28, 2022
HomeWordPress DevelopmentGet the order id on Woocommerce checkout when order is already created...

Get the order id on Woocommerce checkout when order is already created however cost is pending


I am discovering out how WC get the order particulars when an order already created is making an attempt to be paid once more (could also be due a failure or when consumer cancels the cost and attempt to pay later). The present strategies to get the order_id appears not work right here. On net builders instruments I seen that the checkout web page generates a GET response like this:

https://{domain_name}/checkout/order-pay/{order_id}/?pay_for_order=true&key=wc_order_aoM9FKSNpJ

This knowledge is exhibiting up throughout the “File” columns on net builders instruments.

… however I am unable to “get” the order_id from that URL, is not like params which you can retrieve utilizing GET strategies. In truth, the actual URL appears to be like like https://{domain_name}/checkout/

I am simply want solely that order_id… any concepts?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments