Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Add an endpoint for processing pay-for-order orders #9312

Closed
hsingyuc opened this issue May 1, 2023 · 0 comments · Fixed by #10287
Closed

Add an endpoint for processing pay-for-order orders #9312

hsingyuc opened this issue May 1, 2023 · 0 comments · Fixed by #10287
Assignees
Labels
block: checkout Issues related to the checkout block. focus: rest api Work impacting REST api routes. type: enhancement The issue is a request for an enhancement.

Comments

@hsingyuc
Copy link
Contributor

hsingyuc commented May 1, 2023

Is your feature request related to a problem? Please describe.

Currently, WooCommerce Blocks does not support pay-for-order checkouts. The second step in this process is to add an endpoint to the store API to process pay-for-order orders.

Describe the solution you'd like

Pass the order ID and key to the checkout endpoint so we can checkout with the order and easily validated by the endpoint.

Describe alternatives you've considered

To process the pay-for-order orders inside of the existing checkout endpoint, but this might require a lot of conditional checks and combining the logic for cart and orders can get messy.

Additional context

Slack - p1681808113297559/1680686053.947699-slack-C8X6Q7XQU

@hsingyuc hsingyuc added type: enhancement The issue is a request for an enhancement. focus: rest api Work impacting REST api routes. block: checkout Issues related to the checkout block. labels May 1, 2023
@hsingyuc hsingyuc self-assigned this May 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: checkout Issues related to the checkout block. focus: rest api Work impacting REST api routes. type: enhancement The issue is a request for an enhancement.
Projects
None yet
1 participant