After process payment with Stripe Payment provider and returning to order confirmation page, in my email template, the line VendrApi.Instance.GetStores() return null.
I am wondering if I have done it wrong.
I want to capture store data by StoreReadOnly store = VendrApi.Instance.GetStores().FirstOrDefault(); and use it to get finalized order inside my email template by var order = VendrApi.Instance.GetCurrentFinalizedOrder(store.Id);.
Vendr GetStore return null
After process payment with Stripe Payment provider and returning to order confirmation page, in my email template, the line
VendrApi.Instance.GetStores()
return null.I am wondering if I have done it wrong. I want to capture store data by
StoreReadOnly store = VendrApi.Instance.GetStores().FirstOrDefault();
and use it to get finalized order inside my email template byvar order = VendrApi.Instance.GetCurrentFinalizedOrder(store.Id);
.Hi NPuna,
I’d take a look at the OTB templates to see how we do it https://github.com/vendrhub/vendr-demo-store/blob/v3/main/src/Vendr.DemoStore.Web/App_Plugins/Vendr/templates/email/OrderConfirmationEmail.cshtml#L16
Hi Matt
Thank you, your answer helped me to solve the problem.
is working on a reply...