Skip to content

Instantly share code, notes, and snippets.

View Cajs's full-sized avatar

Cameron Stephen Cajs

View GitHub Profile
<?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;
});