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 #10287

Merged
merged 26 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1cf631f
Register order route
hsingyuc Mar 31, 2023
82e21ea
Check authorization for getting the order
hsingyuc Apr 5, 2023
9ae503a
Add order data to the response
hsingyuc Apr 5, 2023
df8c55b
Add order schema for the endpoint
hsingyuc Apr 5, 2023
31506f3
Move validation check to order controller
hsingyuc Apr 5, 2023
c356b2a
Add order item schema
hsingyuc Apr 25, 2023
4454195
Check if the order is associated with current user
hsingyuc Apr 27, 2023
9311cfc
Fix after rebase
hsingyuc May 1, 2023
e2d1fd7
Add checkout order endpoint
hsingyuc May 1, 2023
c389bd4
Add order authorization trait
hsingyuc Jul 19, 2023
1297d19
Allow to use the order update customer endpoint in dev build only
hsingyuc Jul 19, 2023
842f8f6
Get both customer and guest details
hsingyuc Jul 19, 2023
cac08cc
Remove duplicate function
hsingyuc Jul 19, 2023
3c23d3c
Update the cart update customer class doc block
hsingyuc Jul 19, 2023
8fd423e
Remove duplicate order route
hsingyuc Jul 19, 2023
e4fb165
Update documentation for feature flags
hsingyuc Jul 20, 2023
f8ce888
Add checkout trait
hsingyuc Jul 20, 2023
0d8cdf2
Remove checkout trait
hsingyuc Jul 20, 2023
f5dd3d9
Update billing address and order
hsingyuc Jul 20, 2023
e0c7440
Only allow checkout pending orders
hsingyuc Jul 20, 2023
c8b12c7
Create checout trait
hsingyuc Jul 24, 2023
7ab0878
Use sanitize text field
hsingyuc Jul 24, 2023
d3ec6f3
Extend from checkout schema
hsingyuc Jul 24, 2023
138fcbf
Update response message
hsingyuc Jul 24, 2023
461be20
Allow failed orders to be paid for
hsingyuc Jul 24, 2023
b88fe53
Update authorization error message
hsingyuc Jul 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ The majority of our feature flagging is blocks, this is a list of them:
- Product Rating Counter ([PHP flag](https://github.com/woocommerce/woocommerce-blocks/blob/trunk/src/BlockTypesController.php#L229) | [webpack flag](https://github.com/woocommerce/woocommerce-blocks/blob/trunk/bin/webpack-entries.js#L71-L73))
- ⚛️ Add to cart ([JS flag](https://github.com/woocommerce/woocommerce-blocks/blob/dfd2902bd8a247b5d048577db6753c5e901fc60f/assets/js/atomic/blocks/product-elements/add-to-cart/index.ts#L26-L29)).
- Order Route ([PHP flag](https://github.com/woocommerce/woocommerce-blocks/blob/b4a9dc9334f82c09f533b0f88c947b5c34e4e546/src/StoreApi/RoutesController.php#L65-L67))
- Checkout Order Route ([PHP flag](https://github.com/woocommerce/woocommerce-blocks/blob/add/an-endpoint-for-process-pay-for-order-orders/src/StoreApi/RoutesController.php#L67))

## Features behind flags

Expand Down
2 changes: 1 addition & 1 deletion src/StoreApi/Routes/V1/CartUpdateCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* CartUpdateCustomer class.
*
* Updates the customer billing and shipping address and returns an updated cart--things such as taxes may be recalculated.
* Updates the customer billing and shipping addresses, recalculates the cart totals, and returns an updated cart.
*/
class CartUpdateCustomer extends AbstractCartRoute {
use DraftOrderTrait;
Expand Down
Loading