Use Case
When a payment is completed through Gravity Forms (using PayPal, Stripe, or another payment add-on), you want to generate a WooCommerce coupon. This bridges form-based purchases with your WooCommerce store.
Common scenarios:
- Service purchase includes store discount
- Course enrollment with product voucher
- Event registration with merchandise credit
- Consultation fee includes store credit
- Donation thank-you with shop discount
Step-by-Step Setup
1. Prerequisites
Ensure you have:
- Gravity Forms with a payment add-on (PayPal, Stripe, etc.)
- WooCommerce active on your site
- A form with payment fields configured
2. Create a New Workflow
Navigate to Sequensy → Workflows in your WordPress admin and click Add New Workflow.
Name your workflow “GF Payment Thank You Coupon” or “Service Purchase Store Credit”.
3. Configure the Trigger
Select Payment Completed (GF) as your trigger.
Available filters:
- Form: Specific forms with payment fields
- Payment Amount: Tiered coupons based on spend
- Payment Status: Only successful payments
- Product: Specific Gravity Forms products
4. Set Up the Create Coupon Action
Configure your WooCommerce coupon:
| Setting | Recommended Value | Description |
|---|---|---|
| Coupon Code | GF-{entry_id} | Unique per form entry |
| Discount Type | Fixed Cart | Store credit value |
| Discount Amount | 25 | $25 store credit |
| Usage Limit | 1 | Single use |
| Expiry | 90 days | Generous for service buyers |
| Email Restriction | {email} | Buyer only |
5. Deliver the Coupon
Chain a Send Email action:
Subject: Your $25 store credit is ready!
Hi {name},
Thank you for your purchase! Your payment of {payment_amount}
has been confirmed.
As a thank you, here's $25 to spend in our shop:
Code: {coupon_code}
Value: $25 off your order
Expires: 90 days
Browse our products: {shop_url}
Thanks again for your purchase!
6. Test Your Workflow
- Enable the workflow
- Submit a test form with payment
- Complete the payment process
- Verify coupon was created in WooCommerce
- Check email delivery with coupon code
- Test coupon at checkout
Pro Tips
Match coupon value to purchase: If someone buys a $200 service, a $50 store credit feels proportionate and valuable.
Cross-sell strategically: If your form sells services, the coupon can introduce buyers to physical products they might not have known about.
Track conversions: Use unique coupon prefixes (GF-) to track how many form buyers become shop customers.
Consider product restrictions: Limit coupons to specific product categories that complement what they purchased via the form.
Integration Scenarios
Service + Product Bundle
| Form Purchase | Coupon Value | Products |
|---|---|---|
| $99 Consultation | $20 credit | Related tools |
| $299 Course | $50 credit | Books, supplies |
| $499 Coaching | $100 credit | Any products |
Event Registration
Form: Conference Registration
Payment: $150
Coupon generated:
- $25 merchandise credit
- Valid only during event dates
- Restricted to event merchandise category
Donation Thank You
Form: Donation Form
Payment: $50+
Coupon generated:
- 20% off one order
- Supports the cause with purchase
- 30-day expiry
Gravity Forms Field Mapping
| GF Field | Coupon Setting | Usage |
|---|---|---|
| Email Restriction | Limits who can use | |
| Entry ID | Coupon Code | Makes code unique |
| Payment Total | Discount Amount | Tiered rewards |
| Name | Email personalization | Personal touch |
Troubleshooting
Coupon not created?
- Verify Gravity Forms payment completed
- Check WooCommerce is active
- Review workflow logs
Wrong entry data?
- Verify field mappings
- Check form has required fields
- Review Gravity Forms entry
Coupon not working in WooCommerce?
- Check expiry date
- Verify email matches
- Confirm coupon exists in WooCommerce