I am using authorize.net for transaction.
I want to pass shipping price and shipping type to payment form and want to display there.
I didn’t find any variable which shows that.
Can anyone please tell me solution?
Following is my code.
These are the variables I have already used.
*** PLEASE USE PHP CODE TAGS WHEN POSTING ***
Code: Select all
echo ("<input type=\"hidden\" name=\"x_description\" value=\"" . $VaritemName . "\">\n" );
echo ("<input type=\"hidden\" name=\"x_login\" value=\"" . $loginid . "\">\n");
echo ("<input type=\"hidden\" name=\"x_invoice_num\" value=\"" .$invoice_num. "\">\n");
echo ("<input type=\"hidden\" name=\"x_amount\" value=\"" . $varAmount . "\">\n");
echo ("<input type=\"hidden\" name=\"x_first_name\" value=\"".$varFirstName . "\">\n");
echo ("<input type=\"hidden\" name=\"x_last_name\" value=\"".$varLastName . "\">\n");
echo ("<input type=\"hidden\" name=\"x_company\" value=\"".$varCompany . "\">\n");
echo ("<input type=\"hidden\" name=\"x_address\" value=\"".$totaddress . "\">\n");
echo ("<input type=\"hidden\" name=\"x_city\" value=\"".$varCity . "\">\n");
echo ("<input type=\"hidden\" name=\"x_state\" value=\"".$varState . "\">\n");
echo ("<input type=\"hidden\" name=\"x_zip\" value=\"".$varZip . "\">\n");
echo ("<input type=\"hidden\" name=\"x_phone\" value=\"".$varPhone. "\">\n");
echo ("<input type=\"hidden\" name=\"x_fax\" value=\"".$varFax. "\">\n");
echo ("<input type=\"hidden\" name=\"x_country\" value=\"".$varCountry. "\">\n");
echo ("<input type=\"hidden\" name=\"x_email\" value=\"".$varEmail. "\">\n");
echo ("<input type=\"hidden\" name=\"x_ship_to_first_name\" value=\"".$varFirstNameShip. "\">\n");
echo ("<input type=\"hidden\" name=\"x_ship_to_last_name\" value=\"".$varLastNameShip. "\">\n");
echo ("<input type=\"hidden\" name=\"x_ship_to_company\" value=\"".$varCompanyShip. "\">\n");
echo ("<input type=\"hidden\" name=\"x_ship_to_address\" value=\"".$totaddressShip. "\">\n");
echo ("<input type=\"hidden\" name=\"x_ship_to_city\" value=\"".$varCityShip. "\">\n");
echo ("<input type=\"hidden\" name=\"x_ship_to_state\" value=\"".$varStateShip. "\">\n");
echo ("<input type=\"hidden\" name=\"x_ship_to_zip\" value=\"".$varZipShip. "\">\n");
echo ("<input type=\"hidden\" name=\"x_ship_to_country\" value=\"".$varCountryShip. "\">\n");
echo ("<input type=\"hidden\" name=\"x_card_code\" value=\"".$varcvv. "\">\n");
echo ("<input type=\"hidden\" name=\"x_card_num\" value=\"".$varCardNumber. "\">\n");
echo ("<input type=\"hidden\" name=\"x_exp_date\" value=\"".$varExpdate. "\">\n");
echo ("<input type=\"hidden\" name=\"x_tax\" value=\"".$vartax. "\">\n");