cancel
Showing results for 
Search instead for 
Did you mean: 

Either populate ShipTo via AIM or remove it from email reciept

We're a service company, so we do not sell shipable products . We're currently using AIM to do the initial charge and set up an ARB for our clients. The email reciept comes from Authorize but has both Billing address AND shipping. address info.. except the Shipping info is blank.

 

We are using AIM and I am not finding how to populate the shiiping info (which will ALWAYS BE THE SAME AS BILLING ADDRESS)  or better yet, remove shipping info from the email reciept

My code used for the inital charge, slightly modified from the AIM PHP sdk to include our order number.,,,

 

    $transaction = new AuthorizeNetAIM;
    $transaction->setSandbox(AUTHORIZENET_SANDBOX);
    $transaction->setFields(array(
        'amount' => $row['salescharged'] , 
        'card_num' => str_replace("-", "",$row['salescnumber']), 
        'exp_date' => $row['salesexpdate'] ,
	'first_name' => $nameparts[0] ,
        'last_name' => $nameparts[1] ,
        'address' => $row['salescaddress'] ,
        'city' => $row['salescccity'] ,
        'state' => $row['salesccstate'] ,
        'country' => $country ,
        'zip' => $row['salescczip'] ,
        'email' => $row['salesemail'] ,
        'card_code' => $row['salesvcnumb'],
		'cust_id' => $row['id']
        ));
}

Ideally, the API *SHOULD* have a way to flag a transaction as payment for a service, or virtual product and not include shipping info in the reciept ..  or at least a quick way to indicate the ship to address is the same as the billing address.



apex2014
Member
1 ACCEPTED SOLUTION

Accepted Solutions

 

Hi apex2014,

 

It is not possible to modify the format of our transaction receipt emails in the way that you are requesting. The shipping fields can be populated by simpling sending the same address into the ship to fields as what you are already sending for billing. The ship to fields are as follows:

 

ship_to_first_name
ship_to_last_name
ship_to_address
ship_to_city
ship_to_state
ship_to_zip
ship_to_country

 

Thanks,

Joy

View solution in original post

Joy
Administrator Administrator
Administrator
2 REPLIES 2

 

Hi apex2014,

 

It is not possible to modify the format of our transaction receipt emails in the way that you are requesting. The shipping fields can be populated by simpling sending the same address into the ship to fields as what you are already sending for billing. The ship to fields are as follows:

 

ship_to_first_name
ship_to_last_name
ship_to_address
ship_to_city
ship_to_state
ship_to_zip
ship_to_country

 

Thanks,

Joy

Joy
Administrator Administrator
Administrator

Thank you, I havent had the chance to test this yet, but can't imagaine it would not work as you describe.

 

Perhaps such an option should be considered for the future though, since so many ecommerce sites do not sell physical / shipable products.