-
Notifications
You must be signed in to change notification settings - Fork 120
Simple Payments: Update pending order from Summary screen #5516
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
Conversation
770d7cc to
791755b
Compare
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
You can trigger an installable build for these changes by visiting CircleCI here. |
rachelmcr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! The changes are clear and test well. 👍
Not blocking or specific to this PR, but an observation from my testing:
At first I thought perhaps the note wasn't getting updated when the order was updated. Because it's called "Order Note" in the Simple Payments UI, I looked in the "Order notes" section in the order detail (check both in the app and in wp-admin) expecting to see the note there. It wasn't until I looked again at the code that I realized this note was going into the customer notes section.
I know this behavior has been discussed before, but I'm not sure if it's something we'd reconsider. Aside from the naming confusion, I also expect that customer-provided notes are only things the customer needs to communicate to the merchant (e.g. shipping/delivery instructions) while the order notes a merchant might enter while creating an order would be either for internal purposes (e.g. noting what the payment was for) or for communicating something to the customer with the order confirmation.
Screenshots:
| Simple payments - Order Note field | Order details in app | Order details in wp-admin |
|---|---|---|
![]() |
![]() |
![]() |
|
Hi @rachelmcr Thanks for the review. I agree that the naming is a bit confusing 🤔 We have decided to use the "customer provided note" for some reasons:
What are your thoughts on this @adamzelinski? |
|
Hey, @Ecarrion @rachelmcr I agree and I'm happy to use 'Customer Provided Note' too. Thanks! |
|
Cool, I will update the name to "Customer Provided Note" to avoid confusion. |



part of #5483
Why
Previous PR #5502 took care of rendering proper taxes on the summary screen, this PR takes care of updating the order remotely with the user selection.
PS: This PR just updates the order, does not navigate to any new screen, and does not handle errors yet.
How
Updates
OrderFeeLineto encode its ID. In order to be able to update the simple payment fee with taxable or not taxable statusUpdates
OrdersRemoteto support encoding fee lines when updating an orderUpdates
OrderStorewith an action to update a simple payments order.Update
SummaryViewModel:loadingIndicatorpropertyUpdate
SummaryViewto consume the new values from its VMDemo
update-order.mov
Testing
Prerequisites
Steps
RELEASE-NOTES.txtif necessary.