Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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);.
StoreReadOnly store = VendrApi.Instance.GetStores().FirstOrDefault();
var order = VendrApi.Instance.GetCurrentFinalizedOrder(store.Id);
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
Thank you, your answer helped me to solve the problem.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted