Dear Stack overflow users,
I'm trying to create a customer through the Stripe API in PHP. But I'm not sure how I can add the optional child arguments; name, address_city, address_country, address_zip etc.
I added them as metadata but then they don't show up under the customer's card.
$customer = \Stripe\Customer::create(
array(
'email'=>$email,
'source'=>$token,
'metadata'=>array(
'full_name'=>$fullname,
'address'=>$address,
'zip_code'=>$zip_code,
'city'=>$city,
'country'=>$country,
'email'=>$email
),
'plan'=>$plan
)
);
I would also like to ask; Do you recommend adding these "optional" fields. Is it Higher/lower risk that a card gets declined like this? Does it look better for Stripe when we include these fields?
Please let me know :)
Thanks in advance.