{"id":4073,"date":"2017-08-30T08:58:14","date_gmt":"2017-08-30T06:58:14","guid":{"rendered":"https:\/\/demos.welaunch.io\/wordpress-cf7-stripe\/?post_type=faq&p=179"},"modified":"2020-07-28T08:10:08","modified_gmt":"2020-07-28T06:10:08","slug":"cf7-stripe-setup","status":"publish","type":"faq","link":"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/cf7-stripe-setup\/","title":{"rendered":"CF7 Stripe Setup"},"content":{"rendered":"

Setup a Stripe Account & get the API Key<\/h2>\n

To get a stripe account simply go to stripe.com and register for a new account here<\/a>. Then login and go to Dashboard > API or follow this link<\/a>. Here you will see a publishable & a secret API key. We will need both, so copy both of them, or leave the tab open.<\/p>\n

Settings Panel<\/h2>\n

First you should make sure you can see the stripe settings panel. If you can not see the menu on the right image please make sure you have installed the Redux Framework & Contact Form 7 plugin.<\/p>\n

General Stripe Settings<\/h2>\n

In the General stripe settings you should first set your Company name and a logo in square image format.<\/p>\n

Then you need to paste the before created Stripe API Keys. First the Publishable Key, and then the secret Key.<\/p>\n

\"cf7
cf7 stripe general settings<\/figcaption><\/figure>\n

Stripe Payment Options<\/h2>\n

Globally you can set different Stripe payment options.<\/p>\n

    \n
  1. Validate Postal Code (ZIP)<\/strong>
    \nSpecify whether Checkout should validate the billing postal code.
    \nWe highly recommend setting to true.<\/li>\n
  2. Collect Billing Address<\/strong>
    \nSpecify whether Checkout should collect the user’s billing address.<\/li>\n
  3. Collect Shipping Address<\/strong>
    \nSpecify whether Checkout should collect the user’s shipping address.<\/li>\n
  4. Allow Remember me<\/strong>
    \nSpecify whether to include the option to “Remember Me” for future purchases.<\/li>\n
  5. Accept Bitcoins<\/strong>
    \nSpecify whether to accept Bitcoin.<\/li>\n
  6. Send Mail<\/strong>
    \nCheck how you want the CF7 mail to be sent out.<\/li>\n
  7. Payment Successful<\/strong>
    \nWhat should happen when a successful payment has been made.<\/li>\n
  8. Currency*<\/strong>
    \nSee:
    Stripe Currency Reference<\/a><\/li>\n
  9. Return (success) URL<\/li>\n
  10. Cancel (error) URL<\/li>\n<\/ol>\n
    \"stripe
    stripe payment options<\/figcaption><\/figure>\n

    Advanced Settings<\/h2>\n

    In the advanced settings you can add custom CSS or JS.<\/p>\n

    Create your Form<\/h2>\n

    Go into your Admin panel > Contact > Add new to add a new contact form.<\/p>\n

    Then you will see a new button on the top called “Stripe Button”. Click this button create a stripe button inside the form.<\/p>\n

    \"cf7
    cf7 stripe form tag handler<\/figcaption><\/figure>\n

    When you want to insert the stripe button you have to set some values:<\/p>\n

      \n
    1. Label
      \n<\/strong>Or: Button text
      \nExample: Pay with Stripe<\/li>\n
    2. Item Description
      \nOr: Button text
      \nExample: Pay with Stripe<\/li>\n
    3. Amount<\/strong>
      \nOr: Costs of the product in cents!
      \nExample: 1000 => 10 \u20ac<\/li>\n
    4. Item currency (3 digit ISO code)<\/strong>
      \nExample: eur
      \nSee: https:\/\/stripe.com\/docs\/currencies<\/li>\n
    5. Class attribute<\/strong>
      \nExample: full-width<\/li>\n<\/ol>\n

      After filled out just click on insert tag e voila: You have a button on the contact form called “Pay with Stripe”.<\/p>\n

      \"example
      example stripe button tag in contact form 7<\/figcaption><\/figure>\n","protected":false},"author":1,"featured_media":0,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-4073","faq","type-faq","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/4073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/comments?post=4073"}],"version-history":[{"count":3,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/4073\/revisions"}],"predecessor-version":[{"id":5266,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/4073\/revisions\/5266"}],"wp:attachment":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/media?parent=4073"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/product_cat?post=4073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}