Our EE Addons have Moved!
Our ExpressionEngine Add-ons have been acquired by EE Harbor. Head over there for documentation, info and support.
Our ExpressionEngine Add-ons have been acquired by EE Harbor. Head over there for documentation, info and support.
Actions are triggered afer a successful transaction. You can use them to send customer and admin emails from your site, update entries and add members to Subscriptions.
Setting up a new Action is simple. In the EE CP, visit the Charge addon view, then the Actions tab. You can create a new action from there. You'll see a screen like this :
Actions have the following options :
{exp:charge:info}
are availableNote Emails can also be sent direct from Stripe. Set that in your Stripe dashboard
on_success:entry_id
' or 'on_success:url_title
' to be included on the {exp:charge:form}
tag. on_success:field_name
' where field_name is the name of the field. (ie. 'title', 'transaction_hash' etc..)Once you've setup your action all that's needed is to add a value of 'on_success="action_shortname"
', where action_shortname is the shortname you set when you created the action.
For example, if we've created an action called 'Email All', with a shortname of 'email_all', you'd simply need to do the following :
{exp:charge:form on_success="email_all"} .. {/exp:charge:form}
After a successful payment the action will be triggered.