-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example with receipt_page #31
Comments
@seldimi Looking for the same, maybe you can help us here 🙏 @jimjasson |
Hey there @seldimi and @danielcharrua, Thank you for getting in touch! Can you please provide some more details about what you want to achieve here? Which Thank you! cc @senadir in case you might have a better clue, since checkout blocks are mentioned here :) |
Hey @jimjasson We usually use this in an action hook for sending the client to an intermediary page and do some payment procedure.
Maybe there's a better approach to achieve this... |
Hey @danielcharrua, Thank you for the example! The Is there a chance that your snippet doesn't run on the block based checkout? |
Hello @jimjasson Let me explain our case: we are trying to set a crypto payment on our payment gateway, so our goal is once the order is placed, show the payment instructions to the user and then internally check if the payment has arrived. We initially thought on using the Our plugin is a fork of this one, so we are using the block based checkout. |
Hey @danielcharrua, Thank you for the additional details! As far as I understand, you would like to display some additional instructions on the order confirmation page to help customers complete their payment. Is that right? If so, then I recommend using the Here's an example:
To test this snippet, you may use a plugin like Code Snippets. Does this help? |
Hello woocommerce_thank you is too late to be called there. |
Hey @seldimi, Thank you for sharing your use case, as well! Can you please provide some more details about the issue you noticed? Are you referring to this If so, is there a chance that this action runs with the legacy checkout but not with the block-based one? Or does it always run but it doesn't work with the Dummy Payments gateway? Have you tried with a WooCommerce core payment gateway like Cash on Delivery (COD)? Can you share a short snippet of the code you are trying to run? |
Yes, feel free to visit webexpert.company and go through the process of purchase. You will see that after checkout, there is an intermedia page, where form is created and submited via JavaScript and then process continues. |
Hey @seldimi, Thank you for the additional details! I had a look at your site and I noticed that you are using the classic/legacy checkout at the moment. I added a product to the cart and selected the "Credit Card" payment gateway. When I clicked to pay for the order, a pop-up window briefly showed up informing me that I am being redirected to a bank's environment. Is there a chance that you want to port the solution you created for the classic/legacy checkout to the block-based checkout? If so, then did you try using the If this is not what you are trying to achieve, could you share some more details about the issue you noticed with your current setup? |
Exactly... we use the reciept page and echo a form. and then we submit the form via you can find a similar approach here This doesnt work on checkout blocks... i have tried and tested your dummy gateway with that approach. |
Hey @seldimi, You are right that this action doesn't run in the block-based checkout -- I opened an issue in the WooCommerce core repository: woocommerce/woocommerce#47349. Feel free to continue the discussion there! :) |
Hello.
Is there anyhow an example to show how receipt_page() is working on a blocks payment gateway? Some payment gateways require a form to be submited upon checkout and not using process_payment direct.
The text was updated successfully, but these errors were encountered: