cancel
Showing results for 
Search instead for 
Did you mean: 

Java: How to set x_receipt_link_url parameter through merchant.createAIMTransaction

Hello,

 

We are using Java SDK and would like to know how to set x_receipt_link_url parameter through merchant.createAIMTransaction?

 

The goal is to have the receipt sent from Authorize.net to the buyer to contain a link to the receipt page hosted by our site.

 

Thanks,

 

Alec

alecswan77
Contributor
3 REPLIES 3

x_receipt_link is a parameter that is specific to the SIM API.  It is used to add a link to the receipt page that is hosted by Authorize.Net and has no affect on the resulting receipt email.  The best way to modify the email receipt sent out is to use x_header_email_receipt or x_footer_email_receipt.

Trevor
Administrator Administrator
Administrator

So, how do we use Java SDK to set x_header_email_receipt or x_footer_email_receipt?

 

Thanks!

You can create an EmailReceipt object (net.authorize.data.EmailReceipt) with the appropriate Header and Footer values and assign it the transaction with setEmailReceipt() method.