I tried to put together some code to have authorize.net send a confirmation email based on support's hints to use the sendCustomerTransactionReceiptRequest class and it did not succeed, I got a null response. Could anyone point out where I went wrong or provide sample code yet? Also, will the sandbox be able to send a confirmation email? Thanks.
var request = new createTransactionRequest { transactionRequest = transactionRequest }; // instantiate the contoller that will call the service var controller = new createTransactionController(request); controller.Execute(); //get the response from the service (errors contained if any) var response = controller.GetApiResponse(); var sendrequest = new sendCustomerTransactionReceiptRequest(); sendrequest.transId = response.transactionResponse.refTransID; sendrequest.customerEmail = email; var sendController = new sendCustomerTransactionReceiptController(sendrequest); sendController.Execute(); var sendResponse = sendController.GetApiResponse();
11-02-2015 09:24 AM
Hello @twe
Hello
I've sent your request to our API team about adding some sample code for sending email receipts.
I'd recommend subscribing to this topic so that you'll be alerted via email if there are updates. To subscribe, click Topic Options at the top of this thread and then select Subscribe. You'll then receive an email once anyone replies to your post.
Thanks,
Richard
11-06-2015 12:07 PM
We've added details on how to send customer tmail receipts to the api reference: http://developer.authorize.net/api/reference/index.html#payment-transactions-send-the-customer-a-tra...
Richard
06-08-2016 11:56 AM