Created
February 25, 2018 01:56
-
-
Save markjaquith/d3773c21ffb001829b4418d05fc5692d to your computer and use it in GitHub Desktop.
Force Gravity Forms Stripe add-on to use an older version of the Stripe API, so subscriptions work
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 | |
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