Re: [w3c/payment-request] onpaymentchange event to validate payment details (#634)

> In this case some users are having one name only not having first & last name in billing address as your UI ask full name in one field,

The single line entry for all name inputs is correct as per the API. We don't distinguish between name parts because it's nearly impossible to do so on a global scale: please see [Personal names around the world](https://www.w3.org/International/questions/qa-personal-names). 

When it comes to billing information, there are three possible places to get this information (from most authoritative, to least authoritative): 

```JS
// All single line.
response.details.billingAddress.recipient; 
response.details.cardholderName; 
response.payerName; 
```

Thus, you will either need to speak to CyberSource to correctly deal with this. Alternatively, you will need to use some heuristics in your application to split the names based on user's locale before sending it up to CyberSource for processing.  


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-request/issues/634#issuecomment-333431727

Received on Monday, 2 October 2017 03:10:56 UTC