It does so by moving the coupons into the database and adding features like expirations and redemption tracking. The implementations in this recipe use Rails and build off of the Rails Checkout tutorial , but the concepts can be easily ported to other languages and frameworks. The code examples use Stripe Checkout for easy and secure card collection, but you could also use Stripe.
The recipe starts by creating a simple coupon framework, which later can be expanded to something more feature-rich.
To get started, simply add a coupon field to your checkout page. The coupon will be submitted to your server, along with the stripeToken , after the user submitted their card details via Checkout. Because the charge amount may change depending on an entered coupon, it is best to refrain from displaying the amount in the Checkout modal. On the server, you want to verify the validity and value of the submitted coupon, then update the amount to be charged before sending the charge request to Stripe.
You can then look up the user-submitted couponCode in this hash, and apply any discount accordingly. Note that in keeping with the Rails tutorial this example builds off of, a customer is created first and then charged. You can just make a charge directly too. Noting the coupon usage makes it easy to see at any later point that a coupon was used on the charge.
For the above code to work, you want a hash that stores all of the coupons, and a mechanism to retrieve their respective discounts. Some normalization of code is performed, like stripping whitespace, before looking it up in the hash. After your first payment, the next one will be due 30 days later. Make sure you have auto-renew turned on for uninterrupted access to Howl. Your account will be automatically downgraded at the end of the current pay period. Here are some websites with instructions for cancelling with your App provider: Payments for Howl subscriptions are non-refundable.
However, if there are special circumstances that we deem appropriate ex. The amount of these credits, and whether or not they are provided, are at our sole discretion. The provision of credits in one instance will not guarantee credits in the future. If you believe you were billed incorrectly, please contact support howl.
Please include the full name and last 4 digits on the credit card in your email so the payment may be properly researched. Forgot Password? Get exclusive access to more than hours of new Howl Original mini-series and audio-documentaries, over comedy albums and all the archives from WTF with Marc Maron and all the Earwolf shows. Start Your Free Trial! Cancel anytime.
Exclusive Shows. Once the discount is applied on the initial charge, the coupon will no longer be applicable. Forever coupons do not have an expiration time set, and the discount will be applied as long as the subscription is active. Limited Period coupons will have a fixed time duration. Once this time is over, the coupon can no longer be applied to the subscription. If the coupon is set for 3 months, then the discount will be applied only for the next 3 months.
After that, normal plan charges will incur. Multiple coupons can be applied to an existing subscription as long as the coupons are not of the same discount type. If you apply a coupon with the same discount type, then the previous coupon will be overwritten. Here you cannot add another percentage type discount coupon, but you can overwrite the existing coupon and replace it with the new percentage coupon. The screenshots below show you what happens when you apply the same discount type twice as explained in the example above. Multiple coupons cannot be added during subscription creation and is only supported for existing subscriptions.
Coupon setup and integration can be done easily by entering the name, discount value, duration, validity and constraints. Naming your coupon in a detailed way is quite useful during sign up. You should be able to easily understand what the offer is all about without checking the coupon details in the web interface. Specify an invoice name or the application will use the default.
This name appears on the invoice sent to customers and appears on the HTML generated view of the invoice. Select the expiration date in the Valid Till field. Once this date passes, the coupon becomes invalid. During the festive season, you could offer coupons with limited period saying they would be valid until December 25th. Set the number of times a coupon can be redeemed using the Maximum Redemptions field. If a coupon has maxed out the number of redemptions, it becomes void and can no longer be used for new sign ups.
If a coupon has not been used yet, then all the fields can be edited. To edit a coupon, click on the coupon name, and click on the Edit Coupon button on the right side.