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.
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.
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?
Hi Matt,
Do you have a stack trace that points to where in Vendr the error originates?
/Matt
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 theIMemberService
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
Thanks for the speedy update!
I'll get it tested and let you know all is well.
Thanks again
Just to let you know, 1.2.8 is out now that contains this fix.
Thanks again for reporting 👍
Thanks Matt. Much appreciated.
is working on a reply...