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

Stripe Plugins

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • My Downloads
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Topics / Money off coupon for full amount still asks for card information

[Resolved] Money off coupon for full amount still asks for card information

· ·

Home › Forums › Stripe Payments Plugin › Money off coupon for full amount still asks for card information

Tagged: coupon

This topic contains 11 replies, has 2 voices, and was last updated by  Admin 6 months, 2 weeks ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • July 30, 2020 at 9:53 am #3136

    madideas
    Participant

    Hi, first can I congratulate you on a great and versatile plugin!

    Recently I’ve been using coupons, some with 100% discount and others with an amount equal to the product price, which makes the price zero on some products. Using 100% is great as the sale proceeds without asking for card details, but using the amount coupon the sale value goes to zero but it still asks for the card detail, which is confusing for the customer.

    Any solution to this?

    Cheers

    July 30, 2020 at 9:56 am #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.

    July 30, 2020 at 11:57 pm #3138

    Admin
    Keymaster

    Please give me the following info so we can investigate more.

    What is the total discount amount you configured in the coupon? What is the total “Product price” of this item in question?

    July 31, 2020 at 8:18 am #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(!)

    August 2, 2020 at 12:02 am #3140

    Admin
    Keymaster

    Thank you. We have created a ticket to address this. I will give you an update after we come up with a way to handle the code for this.

    August 3, 2020 at 8:48 am #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’;
    }

    August 4, 2020 at 12:15 am #3145

    Admin
    Keymaster

    We have addressed this in the code (it will go out with the next release). In the meantime, you can use the following testing version that has the fix:

    Testing Version of Stripe Payment

    August 12, 2020 at 11:00 am #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 13, 2020 at 1:06 am #3155

    Admin
    Keymaster

    Thank you. We will take a look.

    August 13, 2020 at 8:12 am #3156

    Admin
    Keymaster

    We have applied a fix for it. Please download a new copy of the test version and use it.

    August 13, 2020 at 8:24 am #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 15, 2020 at 1:36 am #3159

    Admin
    Keymaster

    Thank you. We have just applied a fix for that also.

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

You must be logged in to reply to this topic.

Primary Sidebar

Search

Featured Addons and Extensions

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

Addon Bundle

Stripe Payments Addon Bundle

Support Links

  • Support Forum
  • Forum Registration

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