Last active
January 12, 2016 07:40
-
-
Save nielsvr/1f16cd5e997fe1c27a49 to your computer and use it in GitHub Desktop.
Hook into the fulfillment status of Pronamic IDEAL
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 | |
class Fulfillment { | |
/** | |
* Constructs and initialize | |
*/ | |
public function __construct() { | |
add_action('gform_ideal_fulfillment', array( $this, 'handle_payment_subscription_fee'), 10, 2 ); | |
} | |
/** | |
* Function fires after submission of the payment subscription form | |
*/ | |
public function handle_payment_subscription_fee( $entry, $feed ) { | |
$form_id = $entry['form_id']; | |
$user_id = rgar( $entry, '1'); | |
$is_fulfilled = $entry['is_fulfilled']; | |
} | |
} | |
$fulfillment = new Fulfillment(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment