Title: Code to change Payment Method
Last modified: October 11, 2019

---

# Code to change Payment Method

 *  Resolved [coogee86](https://wordpress.org/support/users/coogee86/)
 * (@coogee86)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/code-to-change-payment-method/)
 * Hi.
    I’m using the plugin “booked” to manage appointments. It is integrated with
   Woocommerce to allow customers to pay for the appointment online.
 * The plugin allows in the admin section to view the payment status of each appointment
   of a day (based on the respective Woocommerce Order Status), and has a button
   for unpaid appointments to “Set as Paid”.
 * What would be required to enhance this that before the order is set as paid, 
   the payment method is changed? Eg. when ordering the payment method is set to“
   Pay at location” but at the end it should be “Card”.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/code-to-change-payment-method/#post-12026879)
 * Hi there,
 * Sounds like this might be a question for the developers of “Booked” instead.
 * With that said, the only option that I can think of would be to manually ensure
   that each order is individually changed before changing the order status. You
   can do that by editing the billing details for that order:
 * 
    Link to image: [https://cld.wthms.co/1iIzRm](https://cld.wthms.co/1iIzRm)

Viewing 1 replies (of 1 total)

The topic ‘Code to change Payment Method’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/code-to-change-payment-method/#post-12026879)
 * Status: resolved