WordPress.org

Forums

WooCommerce - excelling eCommerce
Payment API adding meta to order (1 post)

  1. mosfetish
    Member
    Posted 1 year ago #

    In my payment gateway plugin, in the process_payment function, to add some data gathered in a direct payment method, I'm using:

    update_post_meta( $order_id, 'my_data', esc_attr($_POST['my_data']));

    This works, and I can access it in the admin order page, but is it the correct woocommerce way?

    http://wordpress.org/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.