Skip to content

Instantly share code, notes, and snippets.

@markjaquith
Created February 25, 2018 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markjaquith/d3773c21ffb001829b4418d05fc5692d to your computer and use it in GitHub Desktop.
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
<?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