Skip to content

Commit

Permalink
Added optional "after process" code to run for Stripe plugin, and nam…
Browse files Browse the repository at this point in the history
…espaced helper funcs.
  • Loading branch information
cheesegrits committed Nov 14, 2018
1 parent 800707f commit 71f8117
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 72 deletions.
7 changes: 7 additions & 0 deletions plugins/fabrik_form/stripe/forms/fields.xml
Expand Up @@ -84,6 +84,13 @@
label="PLG_FORM_STRIPE_CONDITION_LABEL"
repeat="true"/>

<field name="stripe_after_process"
type="fabrikeditor"
mode="php"
description="PLG_FORM_STRIPE_AFTER_PROCESS_DESC"
label="PLG_FORM_STRIPE_AFTER_PROCESS_LABEL"
repeat="true"/>

</fieldset>

<fieldset name="plg-form-stripe-price"
Expand Down
Expand Up @@ -188,6 +188,8 @@ PLG_FORM_STRIPE_CUSTOMERS_DESCRIPTION="You can optionally store the Stripe custo
PLG_FORM_STRIPE_COUPONS_DESCRIPTION="You can optionally use coupons. Note that this does not use the Stripe coupon API, you simply use a local table with coupon details, which are applied to the cost before making the Stripe transaction."
PLG_FORM_STRIPE_TEST_DESCRIPTION="We strongly recommend that you use test mode while developing your app! Obtain the test keys from your Stripe dashboard."
PLG_FORM_STRIPE_STRIPE_DESCRIPTION="In order to use the Stripe plugin, you must have a Stripe account, and obtain API keys from your dashboard. Enter them here, along with some other basic information. See the tooltips on each option for detailed information."
PLG_FORM_STRIPE_AFTER_PROCESS_DESC="OPTIONAL - PHP code to run after the form has submitted. The Stripe charge object is in $this->charge, form and list models are in $formModel and $listModel, form data is in $this->data (or $formModel->formDataWithTableName)"
PLG_FORM_STRIPE_AFTER_PROCESS_LABEL="After Process"
; front end
PLG_FORM_EXISTING_CUSTOMER_PURCHASE="Purchase this item for %s using your existing card ending in %s";
PLG_FORM_STRIPE_CALCULATING="Calculating ..."

0 comments on commit 71f8117

Please sign in to comment.