This file contains 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
<?php | |
/** | |
This filter runs before a subscription is created allowing you to modify the arguments passed to Stripe | |
*/ | |
add_filter( 'cf_stripe_recurring_args', function( $args ){ | |
//https://stripe.com/docs/subscriptions/taxes | |
$args[ 'tax_percent' ] = 6.42; | |
return $args; | |
}); |