Created
May 30, 2017 08:11
-
-
Save madeincosmos/00019803f81e0457f566f260c34fc94e to your computer and use it in GitHub Desktop.
Keep GoCardless subscription orders on-hold until payment confirmed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_woocommerce_set_subscription_order_status ( $status ) { | |
return 'on-hold'; | |
} | |
add_filter( 'woocommerce_gocardless_create_payment_subscription_order_status', 'custom_woocommerce_set_subscription_order_status' ); | |
add_filter( 'woocommerce_gocardless_create_payment_subscription_renewal_order_status', 'custom_woocommerce_set_subscription_order_status' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment