Pass contrib module tokens to custom event in rules I am creating a custom rules event using hook_rules_event_info. This custom event is extending the features of the Stripe Subscription contrib module. The custom rules event is working fine so far.

Stripe Subscription creates several tokens for use within the module using hook_tokens. Is it possible for me to pass the tokens available in the module onto the custom rule event I have created so I can use them in the actions? 

The event rule I have created looks like this:

function stripe_subscription_rules_event_info() {
  return array(
    'stripe_subscription_event' =&gt; array(
      'label' =&gt; t('A user subscribed'),
      'module' =&gt; 'stripe_subscription',
      'group' =&gt; 'Stripe Subscription',
      'variables' =&gt; array(
        'acting_user' =&gt; array('type' =&gt; 'user', 'label' =&gt; t('The user who is subscribing.')),
        'plan' =&gt; array('type' =&gt; 'text', 'label' =&gt; t('The purchased plan.')),
        'subscription_action' =&gt; array('type' =&gt; 'text', 'label' =&gt; t('The subscription acton')),
      ),
    ),
  );
}
When the Rule gets invoked, you can send any number of parameters along with it. Just make sure they match the expected data type.

rules_invoke_event('stripe_subscription_event', $acting_user, $plan, $stripe_subscription_event);


This will trigger the Rule and send the variables along. It is up to you call this function and obtain these values somehow. 

Since your Rules description is A user subscribed, I suppose you should the submit function of that event to invoke the Rule. You might be able to grab the values from the $form_states['values'] array. I have no idea what the Stripe subscription module does, so I am not sure how you should obtain these values.

I don't think you can use tokens. Those are specifically for rendering content and I have never seen them used in code. (You might obtain the values by copying some of the logic though.)