Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Force Gravity Forms Stripe add-on to use an older version of the Stripe API, so subscriptions work
add_action( 'gform_stripe_post_include_api', function() {
if ( method_exists( '\Stripe\Stripe', 'setApiVersion' ) ) {
\Stripe\Stripe::setApiVersion( '2016-07-06' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment