• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Payments Plugin for Stripe

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • Terms & Conditions
    • My Downloads
    • License Key
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
    • Email Support for Customers
  • Contact Us
  • Show Search
Hide Search
You are here: Home

madideas

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 13, 2020 at 8:24 am in reply to: Money off coupon for full amount still asks for card information #3157
    madideas
    Participant

    Thanks for that quick update, tested and is behaving ok. I do note that the email receipt may not be ideal, as the ‘subtotal’ line shows a negative amount if the coupon value is higher than the purchase amount:

    Product Name: Webinar for £10
    Quantity: 1
    Item Price: £10.00
    Coupon “test12”: -£12.00
    Subtotal: -£2.00
    ——————————–
    Total Amount: £0.00

    I think it would be better for the subtotal to appear as zero, and arguably the coupon amount should only show the amount that’s been redeemed, i.e. the product price, however these aren’t deal-breakers. The danger here is that the customer might expect a refund of £2 looking at this receipt.

    August 12, 2020 at 11:00 am in reply to: Money off coupon for full amount still asks for card information #3152
    madideas
    Participant

    I’ve run some tests as suggested but I’m getting inconsistent results. When the coupon value meets or exceeds the product price it’s working as expected, but it’s also sporadically reducing the price to zero when the coupon price is lower than the item, for example product at £10 applying £9 coupon gave it for free, and also product price £55 with £33 coupon also gave for free.

    So whilst I can’t be specific about why this is failing, this doesn’t appear to be a good build.

    August 3, 2020 at 8:48 am in reply to: Money off coupon for full amount still asks for card information #3143
    madideas
    Participant

    FWIW, and I obviously don’t know my way around the code, I modified the Load_coupon method for the Item class to check the coupon value and if >= product price then transform it into a 100% off, which is then handled properly by the rest of the plugin code.

    if(intval($this->coupon[‘discount’])>=$this->get_price() &&
    $this->coupon[‘discount_type’]===’fixed’){
    // transform this to a 100%
    $this->coupon[‘discount’]=100;
    $this->coupon[‘discount_type’]=’perc’;
    }

    July 31, 2020 at 8:18 am in reply to: Money off coupon for full amount still asks for card information #3139
    madideas
    Participant

    Hi, the product price is £33, and the coupon is ‘fixed amount’ of £33. I did also experiment with higher value coupons, and the total price went negative(!)

    July 30, 2020 at 9:56 am in reply to: Money off coupon for full amount still asks for card information #3137
    madideas
    Participant

    … and then payment processing reports ‘Error occurred: This value must be greater than or equal to 1’ – so it doesn’t work anyway.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)

Primary Sidebar

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay, Google Pay, Afterpay

Addon Bundle

Stripe Payments Addon Bundle

A Simple & Lightweight Plugin

Our Philosophy with the Plugin

Support Links

  • Support Forum
  • Support Contact

Search

Copyright © 2025 | Stripe Plugins | A member of the Tips and Tricks HQ family.