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.
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.
Thank you for getting back so quickly.
It would be great if there was an option. I look forward to hearing more.
Thanks again.
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.
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.
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.ww.wp.xz.cn/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.. Reason: typos fixed
I have just installed the testing version on my dev site and the feature works perfectly. Many thanks for fixing this so quickly.