PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Discount Coupon Code and Credit Card (Offline) Capture

  1. mjeune


    We are wondering if we can accomplish the following functionality with Gravity Forms:

    - custom common form fields (already checked, yes)
    - a discount coupon code field which, if filled in with a valid code, will go towards calculating the final total the buyer needs to pay
    - a success page that also sends an e-mail to the buyer with a copy of their receipt (i.e. their private info, and price information in the e-mail)
    - a credit card field (preferably with validation) that will accept a credit card number and will be stored encrypted in the DB (payments are not done live, but offline, so the importance is in capturing the card number is securely storing it in the DB)

    Posted 9 years ago on Wednesday November 14, 2012 | Permalink
  2. David Peralty

    You can have a discount/coupon code field, but in terms of managing and tracking discount codes and whatnot, Gravity Forms doesn't have a way to do this. Most people have to custom code something special or else just use a small number of codes and use conditional logic to make it work.

    You can have a success page and set-up notifications. Check out our demo at

    By default, we disable the credit card field when you aren't using one of our e-commerce solutions, but it is easily re-enabled. Please understand that Gravity Forms does not include proper encryption for credit card data and data is stored in the same database as your WordPress site. You'll want to make sure you have a PHP developer on hand to write an encryption solution, or better yet, use an e-commerce solution to collect and store credit card information.

    Posted 9 years ago on Wednesday November 14, 2012 | Permalink