Title: Logging Orders
Last modified: April 26, 2020

---

# Logging Orders

 *  Resolved [yknivag](https://wordpress.org/support/users/yknivag/)
 * (@yknivag)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/logging-orders/)
 * Is it possible to stop this plugin logging orders? I use it only for collecting
   donations and there is no point in logging then in WordPress as they are logged
   already in the Stripe dashboard. Furthermore the un-necessary logging of personal
   information (name, email & postcode) is a breach of the GDPR.
 * If it is not possible to prevent these entries in the WordPress database, is 
   it possible to use `asp_order_before_insert` filter hook to anonymise the entries(
   remove customer data)? Or the `asp_stripe_payment_completed` action hook to delete
   the post it has just created?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [yknivag](https://wordpress.org/support/users/yknivag/)
 * (@yknivag)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/logging-orders/#post-12734898)
 * Temporarily fixed with:
 *     ```
       add_action( 'asp_stripe_payment_completed', 'asp_after_txn_callback', 10 ,2 );
       function asp_after_txn_callback ( $post_data, $charge )
       {
       	wp_delete_post( $post_data['order_post_id'], true );
       }
       ```
   
 * But this seems rather inefficient. I’d prefer to be able to prevent the insertion
   if possible.
 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/logging-orders/#post-12736486)
 * Hi.
 * There is a built-in option for that, but it looks like it got removed from plugin
   settings for some reason.
 * Let me investigate this and get back to you.
 *  Thread Starter [yknivag](https://wordpress.org/support/users/yknivag/)
 * (@yknivag)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/logging-orders/#post-12736614)
 * Thank you for getting back so quickly.
 * It would be great if there was an option. I look forward to hearing more.
 * Thanks again.
 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/logging-orders/#post-12736736)
 * Looks like the option was not displayed due to a little bug on the settings page.
 * I have fixed it in testing version. You can get it by going to Stripe Payments-
   > Settings, look at the right hand column.
 * After it is installed, go to Stripe Payments – > Settings, “Advanced Settings”
   tab, look for `Don't Create Order` option at the bottom of the page. Enable it
   and no orders would be created for any purchase made via the plugin. Also don’t
   forget to remove the code you placed as workaround.
 * Thank you for reporting this.
 *  Thread Starter [yknivag](https://wordpress.org/support/users/yknivag/)
 * (@yknivag)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/logging-orders/#post-12736858)
 * Wow! Excellent support!
 * I’m mobile atm but will test later today when I can to the PC.
 * One last question, do you know how long the fix might take to go into stable?
   I’m a little wary of running best versions of payment code in production.
 * Thanks again.
 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/logging-orders/#post-12736952)
 * Stable version should be released soon (within few days).
 * There is single line of code needs to be changed in order to restore the option.
 * [https://plugins.trac.wordpress.org/browser/stripe-payments/trunk/admin/class-asp-admin.php#L1070](https://plugins.trac.wordpress.org/browser/stripe-payments/trunk/admin/class-asp-admin.php#L1070)
 * Change ‘dont_create_order’ to ‘pp_additional_css’ and this should restore the
   option.
    -  This reply was modified 6 years, 1 month ago by [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/).
      Reason: typos fixed
 *  Thread Starter [yknivag](https://wordpress.org/support/users/yknivag/)
 * (@yknivag)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/logging-orders/#post-12737952)
 * I have just installed the testing version on my dev site and the feature works
   perfectly. Many thanks for fixing this so quickly.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Logging Orders’ is closed to new replies.

 * ![](https://ps.w.org/stripe-payments/assets/icon-128x128.png?rev=2705524)
 * [Accept Stripe Payments](https://wordpress.org/plugins/stripe-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stripe-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stripe-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/stripe-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stripe-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stripe-payments/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [yknivag](https://wordpress.org/support/users/yknivag/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/logging-orders/#post-12737952)
 * Status: resolved