Sending confirmation mail is not working after DIBS payment.
Hi all,
I am using DIBS test card to make a payment. I have selected "Checkout" pipeline to execute after payment is done. I have not made any changes in checkout pipeline. After the payment is done, I can see that my basket is cleared. But somehow my email is not sent.I have done all the setting mentioned in the post - http://www.publicvoid.dk/SendingEmailUsingUCommerce.aspx .
Note : If I change my payment method service from DIBS to defaultPaymentMethodService mails are sent properly.
Log :
2013-06-04 10:52:16,621 [18] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 9] An unhandled exception occurred
UCommerce.Pipelines.PipelineException: Exception occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:13267
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadData(Uri address)
at UCommerce.Transactions.EmailService.Send(ILocalizationContext localizationContext, EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters)
at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder)
at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
--- End of inner exception stack trace ---
at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
at UCommerce.Transactions.Payments.ExternalPaymentMethodService.ProcessPaymentRequest(PaymentRequest request)
at UCommerce.Transactions.Payments.Dibs.DibsPaymentMethodService.ProcessCallback(Payment payment)
at UCommerce.Transactions.Payments.PaymentProcessor.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2013-06-04 10:52:16,621 [18] INFO umbraco.BusinessLogic.Log - [Thread 8] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Exception occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details.
2013-06-04 10:52:16,621 [18] INFO umbraco.BusinessLogic.Log - [Thread 8] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Unable to connect to the remote server
Byte[] DownloadDataInternal(System.Uri, System.Net.WebRequest ByRef)
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadData(Uri address)
at UCommerce.Transactions.EmailService.Send(ILocalizationContext localizationContext, EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters)
at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder)
at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
2013-06-04 10:52:16,621 [18] INFO umbraco.BusinessLogic.Log - [Thread 8] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: No connection could be made because the target machine actively refused it 127.0.0.1:13267
Void DoConnect(System.Net.EndPoint, System.Net.SocketAddress)
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
2013-06-04 10:52:16,621 [18] INFO umbraco.BusinessLogic.Log - [Thread 8] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: http://dev.lunaheadwear.com:80/9/205/PaymentProcessor.axd
2013-06-04 10:52:16,621 [18] INFO umbraco.BusinessLogic.Log - [Thread 8] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Exception occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details.
UCommerce.Pipelines.PipelineExecutionResult Execute(T)
at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
at UCommerce.Transactions.Payments.ExternalPaymentMethodService.ProcessPaymentRequest(PaymentRequest request)
at UCommerce.Transactions.Payments.Dibs.DibsPaymentMethodService.ProcessCallback(Payment payment)
at UCommerce.Transactions.Payments.PaymentProcessor.ProcessRequest(HttpContext context)
2013-06-04 10:52:16,621 [18] INFO umbraco.BusinessLogic.Log - [Thread 8] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Unable to connect to the remote server
Byte[] DownloadDataInternal(System.Uri, System.Net.WebRequest ByRef)
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadData(Uri address)
at UCommerce.Transactions.EmailService.Send(ILocalizationContext localizationContext, EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters)
at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder)
at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
2013-06-04 10:52:16,621 [18] INFO umbraco.BusinessLogic.Log - [Thread 8] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: No connection could be made because the target machine actively refused it 127.0.0.1:13267
Void DoConnect(System.Net.EndPoint, System.Net.SocketAddress)
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
uCommerce is trying to establish a loopback connection to scrape the HTML contents for the email. For some reason the connection fails when performed during the callback received from DIBS.
Here's the log, "System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:13267".
Not quite sure why it works in one situation, but not the other.
Are you able to resolve the URL of the store locally on the server?
Somehow got things working. Seems like it was a host name issue. We had set up 2 domain names for our test site. Localhost and testSite, We removed localhost domain name from backend and everything started working. Did not understand what was actually happening under the hood. Any idea?
Sending confirmation mail is not working after DIBS payment.
Hi all,
I am using DIBS test card to make a payment. I have selected "Checkout" pipeline to execute after payment is done. I have not made any changes in checkout pipeline. After the payment is done, I can see that my basket is cleared. But somehow my email is not sent.I have done all the setting mentioned in the post - http://www.publicvoid.dk/SendingEmailUsingUCommerce.aspx .
Note : If I change my payment method service from DIBS to defaultPaymentMethodService mails are sent properly.
Log :
Is there anything I am missing?
Still not able to find out a cause of it... :(.. Anyone?
uCommerce is trying to establish a loopback connection to scrape the HTML contents for the email. For some reason the connection fails when performed during the callback received from DIBS.
Here's the log, "System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:13267".
Not quite sure why it works in one situation, but not the other.
Are you able to resolve the URL of the store locally on the server?
It might be the port giving you trouble. Your firewall may not allow HTTP requests on port 13267.
Hi Soren,
Somehow got things working. Seems like it was a host name issue. We had set up 2 domain names for our test site. Localhost and testSite, We removed localhost domain name from backend and everything started working. Did not understand what was actually happening under the hood. Any idea?
is working on a reply...