Reply
Highlighted
Member
Posts: 9
Registered: ‎10-27-2015

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

 

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

Re: send confirmation email receipt

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

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

Re: send confirmation email receipt

@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