Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • dillorscroft 198 posts 192 karma points
    Aug 05, 2020 @ 15:31
    dillorscroft
    0

    BeginPaymentForm blowing up when using a Member Group Rule as a discount

    We've tried to add an automatic discount when a logged in member is in a specific group.

    Unfortunately when we get to the payment form we are getting a YSOD informing us that the IMembershipRoleService can not be resolved.

    I don't think we are doing anything unique with DI that would impact resolution for this interface and the error is coming from code within Vendr.Core so I've no real way of diagnosing the issue.

    Any thoughts?

    enter image description here

    enter image description here

  • Matt Brailsford 2765 posts 14046 karma points MVP 7x c-trib
    Aug 05, 2020 @ 15:40
    Matt Brailsford
    0

    Hi Matt,

    Do you have a stack trace that points to where in Vendr the error originates?

    /Matt

  • Matt Brailsford 2765 posts 14046 karma points MVP 7x c-trib
    Aug 05, 2020 @ 15:51
    Matt Brailsford
    1

    Actually, looking at the MemberGroupDiscountRuleProvider it's pretty obvious and it actually turns out we don't need to resolve that interface at all anyway as we can do everything we need to via the IMemberService which we already have resolved.

    I've committed a fix to our 1.2.8 branch, if you want to test it we have an unstable feed at https://nuget.outfield.digital/unstable/vendr/v3/index.json There should be a 1.2.8-beta0002 on there shortly.

    /Matt

  • dillorscroft 198 posts 192 karma points
    Aug 06, 2020 @ 13:07
    dillorscroft
    0

    Thanks for the speedy update!

    I'll get it tested and let you know all is well.

    Thanks again

  • Matt Brailsford 2765 posts 14046 karma points MVP 7x c-trib
    Aug 21, 2020 @ 10:36
    Matt Brailsford
    100

    Just to let you know, 1.2.8 is out now that contains this fix.

    Thanks again for reporting 👍

  • dillorscroft 198 posts 192 karma points
    Aug 24, 2020 @ 21:18
    dillorscroft
    0

    Thanks Matt. Much appreciated.

Please Sign in or register to post replies

Write your reply to:

Draft