cancel
Showing results for 
Search instead for 
Did you mean: 

send confirmation email receipt

 

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();

 

twe
Member
2 REPLIES 2

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

RichardH
Administrator Administrator
Administrator

@twe

 

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