Skip to content

Instantly share code, notes, and snippets.

@nielsvr
Last active January 12, 2016 07:40
Show Gist options
  • Save nielsvr/1f16cd5e997fe1c27a49 to your computer and use it in GitHub Desktop.
Save nielsvr/1f16cd5e997fe1c27a49 to your computer and use it in GitHub Desktop.
Hook into the fulfillment status of Pronamic IDEAL
<?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