Title: Coupon for Payment Button
Last modified: February 21, 2019

---

# Coupon for Payment Button

 *  Resolved [heidi1234](https://wordpress.org/support/users/heidi1234/)
 * (@heidi1234)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/coupon-for-payment-button/)
 * Hi! I am looking to see if there is a way to add a place for my customer to add
   a coupon code in. I have the coupon ID from Stripe in; however, I noticed it’s
   for subscriptions only and this is a one time payment button.
 * Is there a way to add a coupon field? If not, do you have a work around?
 * Thank you so much!!!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * (@nahuelmahe)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/coupon-for-payment-button/#post-11234653)
 * Hello [@heidi1234](https://wordpress.org/support/users/heidi1234/),
 * Thank you again for using Direct Stripe.
 * I don’t have a coupon system for payments button as that would mean custom pre-
   process to get the amount sent to stripe.
 * I have a draft plugin you can test, it allows the user to use an input field 
   to insert a coupon ID if they have it, of course that applies to plans so it 
   could be used if the subscription is cancelled after one payment. Manually or
   using a hook.
 * You will find the plugin at [https://gist.github.com/New0/ccfac15ee13bc3c72e2cbebf0c232dd1](https://gist.github.com/New0/ccfac15ee13bc3c72e2cbebf0c232dd1)
 * Download it as a zip, and upload it as a zip in WordPress admin, the activate
   it.
    Set a button with css ID button_with_coupon
 * Let me know if you can use that, then we could use a hook to cancel the plan (
   like in this example [https://gist.github.com/New0/d72217de1e60871cf938715c2fd03b61](https://gist.github.com/New0/d72217de1e60871cf938715c2fd03b61))
 * Best wishes,

Viewing 1 replies (of 1 total)

The topic ‘Coupon for Payment Button’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/direct-stripe_7787ff.svg)
 * [Direct Stripe](https://wordpress.org/plugins/direct-stripe/)
 * [Support Threads](https://wordpress.org/support/plugin/direct-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/direct-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/direct-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/direct-stripe/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/coupon-for-payment-button/#post-11234653)
 * Status: resolved