The OrderConfirmation is generally sent after a successful payment - unless you are using the PayPalExpress provider (or some other redirecting provider) which there is an event to handle.
Are you using the FastTrack starter or are you working on a custom build?
Also, are you sure you have an email service setup on your local machine?
I'm using smtp4dev and it doesn't receive anything. No error message from what I can see in the logs.
Is there anything I should look for in the log?
For PayPal, I'm using the built in PayPal payment method which redirects to PayPal and then returns to a thank you page. How does it now that the payment has been a success as it doesn't go back to an end point?
For the custom Stripe provider, should I add anything to it to have the Notification.Trigger?
The main feature addition is the shared product options which does do some db schema changes. The migration should handle it - so you should not need to worry. Always a good idea to backup before an upgrade though =)
I listed the schema changes in the release notes posted in this forum.
There were quite a few performance tweaks that you'll benefit from ...
I'd love to get a Stripe provider put into the Core - I've been speaking to Alex Lingdren (Flight Path) about his - did you say you have done a custom one as well?
Hoping to create a branch where we can get it in there ... is this something you'd be interested in helping out with or at least letting us see your implementation?
Yes, I've spoken to Alex. I've taken inspiration from his but his was for an older version of the Stripe API which was no longer supported so I've replaced his code with code using Stripe.net.
Merchello - Notification on Order Confirmation not being sent
Hi,
I've got the following set up for my email notifications but it just doesn't seem to be getting sent. I've checked logs and can't see any errors.
I tried adding a breakpoint to the OrderCreation view (not sure if this would get hit) I've tried it just with the default text in it (no logic).
At what point, what event is this email sent?
Thanks
Ben
The OrderConfirmation is generally sent after a successful payment - unless you are using the PayPalExpress provider (or some other redirecting provider) which there is an event to handle.
Are you using the FastTrack starter or are you working on a custom build?
Also, are you sure you have an email service setup on your local machine?
It's a custom build. Using PayPal and a or custom Stripe provider.
Anyway I can raise the event to trigger it?
It should already be registered in the Store library:
https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Web.Store/UmbracoApplicationEvents.cs#L40
I'm using smtp4dev and it doesn't receive anything. No error message from what I can see in the logs.
Is there anything I should look for in the log?
For PayPal, I'm using the built in PayPal payment method which redirects to PayPal and then returns to a thank you page. How does it now that the payment has been a success as it doesn't go back to an end point?
For the custom Stripe provider, should I add anything to it to have the Notification.Trigger?
I've tried adding to my Stripe payment provider:
and tried:
but I get the following error:
I tried :
but I get build errors saying "No overload for method 'Trigger' takes 4 arguments"
I had a bug in the event handler in 2.1.0 - just fixed in 2.2.0. What version of Merchello are you using?
Version 2.1.0
I'm really near the end of this project so a bit wary to upgrade! is it a pretty minor upgrade?
The main feature addition is the shared product options which does do some db schema changes. The migration should handle it - so you should not need to worry. Always a good idea to backup before an upgrade though =)
I listed the schema changes in the release notes posted in this forum.
There were quite a few performance tweaks that you'll benefit from ...
OK, I'll have a look on Monday, 10pm here in the UK.
Good news is I've got the notification working for the Stripe provider now so just the PayPal provider to go with hopefully the upgrade will handle.
I'd love to get a Stripe provider put into the Core - I've been speaking to Alex Lingdren (Flight Path) about his - did you say you have done a custom one as well?
Hoping to create a branch where we can get it in there ... is this something you'd be interested in helping out with or at least letting us see your implementation?
Would be awesome if you could share your Stripe provider with us :)
Yes, I've spoken to Alex. I've taken inspiration from his but his was for an older version of the Stripe API which was no longer supported so I've replaced his code with code using Stripe.net.
is working on a reply...