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 | |
/** | |
* A 'fullstripe_before_subscription_charge' action hook example for WP Full Stripe. | |
* It blocks the subscripton if the quantity is less than 3. | |
* | |
* @param array $params with the following keys: | |
* email => Email address of the customer | |
* urlParameters => Array of URL parameters | |
* formName => Name of the form the payment is being made on | |
* productName => Name of the Stripe product being purchased |