Issue with sending confirmation email after payment
Hello! :-)
I'm having some issues getting this functionality to work. After the payment is completed the cart is emptied and we're retrieving the purchase order via xslt and lastly attempting to send the email.
We're using the following XSLT to get the purchase order and send the email:
We're correctly retrieving the order but we're getting this error in the result of the SendEmail function:
<errors><error>The parameter 'address' cannot be an empty string.
Parameter name: address</error></errors>
What can cause this? I've set up the SMTP information in the web.config, and the Checkout.config is also set up accordingly to the guide on publicvoid.dk.
Thanks in advance for the help, it's much appreciated! :-)
You don't have to use the XSLT API to send the e-mail. It's automatically done for you when the payment gateway accepts payment and performs a callback to the store server.
I wasn't retrieving the correct mail, and it's not also sending the correct email - but it's only working for some reason if I'm setting the hostnames to be of the language type "English (United States)".
But thanks alot for the solution, just need to get my head around fixing the language layer stuff now! :-)
Issue with sending confirmation email after payment
Hello! :-)
I'm having some issues getting this functionality to work. After the payment is completed the cart is emptied and we're retrieving the purchase order via xslt and lastly attempting to send the email.
We're using the following XSLT to get the purchase order and send the email:
<xsl:variable name="purchaseOrder" select="CommerceLibrary:GetPurchaseOrderByPaymentReference($orderid)"/>
<xsl:variable name="orderName" select="$purchaseOrder/@orderGuid"/>
<xsl:variable name="result" select="CommerceLibrary:SendEmail($purchaseOrder/@emailAddress,'OrderConfirmation', $orderName)"/>
We're correctly retrieving the order but we're getting this error in the result of the SendEmail function:
<errors><error>The parameter 'address' cannot be an empty string.
Parameter name: address</error></errors>
What can cause this? I've set up the SMTP information in the web.config, and the Checkout.config is also set up accordingly to the guide on publicvoid.dk.
Thanks in advance for the help, it's much appreciated! :-)
You don't have to use the XSLT API to send the e-mail. It's automatically done for you when the payment gateway accepts payment and performs a callback to the store server.
Sending E-mail using uCommerce sheds some light on how it works.
Are you sure you're getting an e-mail address with $purchaseOrder/@emailAddress expression?
Hello Søren! :-)
I wasn't retrieving the correct mail, and it's not also sending the correct email - but it's only working for some reason if I'm setting the hostnames to be of the language type "English (United States)".
But thanks alot for the solution, just need to get my head around fixing the language layer stuff now! :-)
And it's also fixed now -
Thanks alot for the guidance - it seems like the fresh eyes helped quite a lot on the problem.
Have a nice day! :-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.