con
(@conschneider)
Engineer
Hi there,
If I understand you correctly you would like a “Review Order” page? If yes, then there is no endpoint for this. The order-pay comes into effect for when an order has a pending payment. For example for when the payment failed. In these cases a customer can go to their orders via my account and they will see a pay order button next to it.
Screenshot: http://cld.wthms.co/wc6bWO
A review order page is also mandatory in Germany so you can try and take a look at german market plugins. Also this: https://maxim-kaminsky.com/woocommerce-order-review-page/
Kind regards,
Hi Con, thanx a lot for your help, well yes its kind of review order page after the checkout page which is usually where the payment is done on most ecommerce stores, but having a Modal payment gateway, i gotta have a Pay Page or Review Order page after the checkoutpage, cause thats what Stripe Checkout plugin implements on Woocommerce (cause they said as mentioned before they had problems doing the payment with Stripe on Checkoutpage with Modal / PopUp), and the URL for that Review order or Pay page on Stripe Checkout is yourdomian.com/checkout/order-pay/342343/key=wc_order_5b47 So i think that order-pay endpoint can be used also during the checkout process not just for failed payments, am i right?
Well you can check that Checkout process i mention on this store that uses Stripe Checkout on woocommerce, https://newlyn.com/
So thats why i thought its the order-pay endpoint that they use, but review order page, looks similar to what i need, hopefully they gave a free version to see how to implement it. Anyways, hopefull i get more help on how to implement on my custom gateway with pay page / review order page.
Thanx guys
Phil
(@fullysupportedphil)
Automattic Happiness Engineer
Hey @bonini81,
You may want to join the WooCommerce Developer community, as it is more geared towards code and development related requests.
WooCommerce Developers Slack community:
https://woocommercecommunity.slack.com/
If you donβt already have an account, you can sign up at the bottom of the following page:https://woocommerce.com/develop-woocommerce/
Thanx Phil, I joined that community yesterday, getting some help, not much, cause looks like this Pay / Review Order Page is not so commonly implemented so i all have dig a bit deepper on this issue. Thanx anyways, if anyone else has experience on this issue, would love the help. Anyways, i am reviewing how German plugins have implemented this, thanx to the advice of @conschneider
Anyways, if i find a solution i will sharred it, could be useful for the community of plugin devs, cause not much info around, so far.
-
This reply was modified 7 years, 11 months ago by
bonini81.
Hi, @conschneider This german plugin really helps cause emulates the checkout process i need, https://maxim-kaminsky.com/woocommerce-order-review-page/ But is a paid one, any one know of a free one that does the same thing?
Zach W
(@dynamiczach)
Automattic Happiness Engineer
Howdy!
Doing a brief search, I couldn’t find any free “Review Order” plugins that add an extra page to review the order details before confirming the purchase.
You’ll want to either spend some time searching for one (I only spent about 10 minutes), or look to have that custom-developed. Either way, the best option may be to use the suggested plugin to save time and money (over custom-development).
Thanx @dynamiczach Yes i am searching as well and not much documentation about how to implement it, so as a last resource i all buy the plugin, save me time and money, like u say. Anyways, if anyone has information about this let me know. Like i said, i all post the solution when i find it,good for the commnunity of Devs, cause its hard to find.
Zach W
(@dynamiczach)
Automattic Happiness Engineer
If you find a solution, that would be great to post the info here!
We’ll keep this thread open for a few more days for you. π
Hi guys, well i found the answer of how to enable the paypage during the check out process. You have to acess the order object from the Woo ReST API:
$order = wc_get_order($order_id);
$pay_now_url = $order->get_checkout_payment_url('/checkout/order-received/{{order_number}}/?pay_for_order=true&key={{order_key}}');
Of course in the context of a custom payment gateway plugin you would have to place that inside your Custom Plugin code, so use this code in the context that you need it for, and also put the order as on hold not payment complete if not the page wont fire or this code before the paypage code given above:
$args = array(
'status' => 'on-hold',
);
$orders = wc_get_orders( $args );
So that is it, think this piece of code is needed for the community of Wocoomerce Custom Gateway Plugin devs.
Note: This code as for now, fires the paypage after the checkoutpage BUT the Place Order button does not show up to close the order, so i am not able to place my Pay Now button from my payment gateway, so i am working on that now, but this post, was about how to fire the paypage after the checkout page, so if anyone is wondering how this is one of the ways to do it.
So good luck guys!
-
This reply was modified 7 years, 11 months ago by
bonini81.
-
This reply was modified 7 years, 11 months ago by
bonini81.
-
This reply was modified 7 years, 11 months ago by
bonini81.
-
This reply was modified 7 years, 11 months ago by
bonini81.
-
This reply was modified 7 years, 11 months ago by
bonini81.
Also UPDATE on this solution, there is a new Free plugin that allows you to make multi step checkout process, so that would help even more:
https://wordpress.org/plugins/wp-multi-step-checkout/
Enjoy devs!