Commit 1ec48182 authored by git's avatar git Committed by mglaman

Issue #2365797 by akosipax, mglaman, dxx: Set the billing information country from Express Checkout

parent 204caa08
......@@ -1415,10 +1415,11 @@ function commerce_paypal_ec_customer_profile($order, $profile_type, $response, $
$address['first_name'] = $response['FIRSTNAME'];
$address['last_name'] = $response['LASTNAME'];
$address['name_line'] = $address['first_name'] . ' ' . $address['last_name'];
$address['country'] = $response['COUNTRYCODE'];
}
// Otherwise if it's a shipping profile, populate the address with all of
// the shipping information returned from PayPal.
elseif ($profile_type == 'shipping') {
// Otherwise if it's a shipping profile, populate the address with all of
// the shipping information returned from PayPAl.
// Map addressfield value keys to keys available in the response array.
$key_map = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment