bookmark_borderCreating a Stripe Feed

If you have not yet obtained and saved your Stripe API Keys, you will need to do so before continuing with this article.

Setting up the Stripe Feeds

Now that you have obtained and saved your Stripe API Keys, we can begin the last step of integrating Stripe with Gravity Forms. Just like most Gravity Forms Add-Ons, the integration is finalized by creating a feed.

  1. Screen Shot 2015-08-18 at 10.58.45 AM You will now need to visit the form we created during the Setting up a Stripe Compatible Form article. If you have not created this form, visit Setting up a Stripe Compatible Form. Select *Forms* to view your forms.

  2. Screen Shot 2015-08-18 at 11.06.25 AM Now that we are in the Forms view, hover over your Stripe compatible form, then hover over settings, and select Stripe from the dropdown.

  3. stripe_feed Once you have selected stripe under settings, you will be directed to a Stripe Feeds page. Select Create One to begin creating your Stripe Feed.

  4. Stripe_test_feed After you have selected Feed Settings, you will need to give your Feed a unique name. This prevents any trouble with distinguishing the feed later on.

  5. Screen Shot 2015-08-18 at 11.52.28 AM Now that you have given your feed a unique name, you will now need to select the Transaction Type. Products and Services are single one time payments, while the Subscription is a reoccurring payment.

Setting up the Products and Services Transaction in your Stripe Feed

  1. payment_amount This step covers setting up your feed if you selected Products and Services, if you select Subscription, go the next section. Depending on which fields you have added you will have different options in the Payment Amount dropdown. In this case I will use Form Total as the payment amount.

  2. metadata Under Other Settings you have a few more options to customize. None of these options are required. Metadata allows you to send custom information to stripe. Just select the field of your choice and type in the information you would like to be displayed. For more information, select the question mark icon beside Metadata.

  3. email After the Metadata option, you also have the Stripe Receipt option. This option can only be used if you have added an Email field as mentioned in a previous document. If you have the email field included in your form, you may select the option to send the receipt via email.

  4. conditional_logic If you would like to enable conditional logic in your Stripe transaction select the checkbox. Conditional Logic simply put is a condition, or set of conditions that need to be met prior to the feed actually being executed.

  5. update_settings Congratulations, you have now completed the setup of your Products and Services transaction. You may now select Update Settings to save your feed. Your stripe is now integrated with gravity forms, read on if you would like to learn how to setup a Subscription.

Setting up the Subscription Transaction in your Stripe Feed

  1. download Now that we have gone over Products and Services, we will now go over Subscription. Navigate to your Feed Settings and select Subscription as the Transaction Type.

  2. recurring amount Once you have selected Subscription, you will be provided a few Subscription Settings. From here, select which field determines the recurring price of your item.

  3. download (1) By default, the Billing cycle charges the customer once a week. You can change this option by modifying the number that precedes the time interval, or by changing the time interval itself.

  4. setup Like the Recurring Amount option, the Setup Fee requires you to select a field you previously made in your form, to pull its data from. The Setup Fee can be mapped to a pricing field, to charge an initial fee to start your subscription. If you select this option, the trial field will be unavailable.

  5. Trial If you did not enable the Setup Fee, you have the option to enable a Trial. When enabling you trial period you select the amount of days you would like the trial to last. The customer’s recurring payment will not begin until the end of the Trial Period.

  6. OS In Other Settings we are now required to have Customer Information, so the subscription transaction can go through successfully. For best results, map the Email Field to the Email. You can map whatever field you would like for the Description. This will be used to uniquely identify your customer.

  7. other settigns The following options are identical to the ones described in the Products and Services transaction type. Refer to the previous section for more information. Once you have customized these options, you can select Update Settings.

Congratulations, you have finished setting up your Stripe Feed Settings, and your Stripe Add-On is now completely integrated with Gravity Forms. If you would like to verify that your Stripe is indeed integrated with Gravity Forms, visit Verifying your Stripe Integration.

You can create multiple Stripe feeds for your form, however, you must configure conditional logic on them. The Stripe add-on will only process one feed during submission, if conditional logic is not configured it will use the first feed it finds.