<form method="post" action="paypal.php"> <label>First Name:</label><br /> <input type="text" name="first_name" size="30"><br /> <label>Last Name:</label><br /> <input type="text" name="last_name" size="30"><br /> <label>Address Line 1*</label><br /> <input type="text" name="address1" size="30"/><br /> <label>Address Line 2</label><br /> <input type="text" name="address2" size="30"/><br /> <label>City*</label><br /> <input type="text" name="city" size="30"/><br /> <label>Zip Code*</label><br /> <input type="text" name="postcode" size="30"/><br /> <label>Email*</label><br /> <input type="text" name="email" size="30" value=""/><br /> <label>Phone*</label><br /> <input type="text" name="telephone" size="30"/><br /> <input type="submit" value="Continue" /> $first_name = $_POST["first_name"]; $last_name = $_POST["last_name"]; $address1 = $_POST["address1"]; $address2 = $_POST["address2"]; $city = $_POST["city"]; $postcode = $_POST["postcode"]; $customer_email = $_POST["email"]; $telephone = $_POST["telephone"]; $queryString = "?cmd=_cart"; $queryString .= "&upload=1"; $queryString .= "&charset=utf-8"; $queryString .= "¤cy_code=" . urlencode($config['currencyCode']); $queryString .= "&business=" . urlencode($config['paypal']['id']); $queryString .= "&return=" . urlencode($config['paypal']['returnUrl']); $queryString .= '¬ify_url=' . urlencode($config['paypal']['notifyUrl']); $queryString .= "&address_override=1"; $queryString .= "&first_name=" . urlencode($first_name); $queryString .= "&last_name=" . urlencode($last_name); $queryString .= "&address1=" . urlencode($address1); $queryString .= "&address2=" . urlencode($address2); $queryString .= "&city=" . urlencode($city); $queryString .= "&zip=" . urlencode($postcode); $queryString .= "&night_phone_b=" . urlencode($telephone); $queryString .= "&email=" . urlencode($customer_email); $queryString .= '&lc=US'; $queryString .= '&page_style=primary'; $queryString .= '&LANDINGPAGE=Billing';
Problem is that when I change $queryString .= '&lc=US'; to GB as in Great Britain or any other country it works fine but when I put it back to US as in United States.. it gives me an error saying Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address.

New Topic/Question
Reply



MultiQuote



|