woocommerce-android icon indicating copy to clipboard operation
woocommerce-android copied to clipboard

Cash Orders with empty Payment Method

Open malinajirka opened this issue 11 months ago • 1 comments

Describe the bug The mobile apps leave the payment_method and payment_method_title fields empty when the payment is collected in cash.

I checked the code, and the app updates only the status of the order to Completed, leaving the payment_method and payment_method_title fields empty.

To Reproduce Steps to reproduce the behavior:

  1. Create an order in the app
  2. Open detail of the order
  3. Tap on 'Collect Payment'
  4. Select Cash
  5. Confirm
  6. Notice the order is marked as completed, but the payment_method and payment_method_title are empty (not visible on the UI in the app

Screenshots

Expected behavior

Proposal When the user selects Cash on the Payment Selection screen, the apps should update:

  • status to completed
  • payment_method to cod
  • payment_method_title to Pay in Person (This could get tricky, since this title is customizable – .../wp-admin/admin.php?page=wc-settings&tab=checkout&section=cod. However, AFAICT the end-customers won’t see this value. I believe setting it to Pay in Person should be a good enough MVP.)

malinajirka avatar Mar 22 '24 12:03 malinajirka

Thanks for reporting! 👍

dangermattic avatar Mar 22 '24 12:03 dangermattic