I've added a product/variant to the basket, and set up the billing/order addresses etc, with a payment method that uses the 'Default Payment Method Service' so I don't have to enter any credit card details. I also have a confirmation email setup with the corresponding content item selected.
My problem is when I set the pipeline within the Payment Method to 'Checkout' I get the following error on the Preview.aspx page:
If I change the pipeline to any other setting (e.g. processing, complete order etc), the process works fine and goes through to the confirmation page, but I don't get a confirmation email.
The Preview.cshtml page has the following code in it:
if (request.HttpMethod == "POST" && request.Form.AllKeys.Any(x => x == "send-order")) { TransactionLibrary.ExecuteBasketPipeline(); TransactionLibrary.RequestPayments(); HttpContext.Current.Response.Redirect("Confirmation.aspx"); }
I have it workin on my dev server with no problems, and can't see any differences with the setup on my staging server...
Can you please try to send us the stacktrace or anything indicating what is wrong. You can look in the log files or try to attach the umbdebugshowtrace=True.
My wildest guess though, is your send email task that is failing.
Checkout not working for uCommerce store
Hi,
I've added a product/variant to the basket, and set up the billing/order addresses etc, with a payment method that uses the 'Default Payment Method Service' so I don't have to enter any credit card details. I also have a confirmation email setup with the corresponding content item selected.
My problem is when I set the pipeline within the Payment Method to 'Checkout' I get the following error on the Preview.aspx page:
Error loading MacroEngine script (file: uCommerce/Preview.cshtml)
If I change the pipeline to any other setting (e.g. processing, complete order etc), the process works fine and goes through to the confirmation page, but I don't get a confirmation email.
The Preview.cshtml page has the following code in it:
I have it workin on my dev server with no problems, and can't see any differences with the setup on my staging server...
Any help would be much appreciated.
Maff
Hi Maff,
Can you please try to send us the stacktrace or anything indicating what is wrong. You can look in the log files or try to attach the umbdebugshowtrace=True.
My wildest guess though, is your send email task that is failing.
Kind regards
Morten
Hi Morten,
I just came back to this issue to try your suggestion and it's working now without me doing anything - very strange but I'm not complaining! :)
Thanks for your suggestion anyway - I will try that in future if I get any other errors.
Thanks,
Maff
Roger. Glad to help.
is working on a reply...