• Resolved heidi1234

    (@heidi1234)


    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

    (@nahuelmahe)

    Hello @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

    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 )

    Best wishes,

Viewing 1 replies (of 1 total)

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