Export transactions require a customer name and address – Stripe Error
As your error suggested you need to pass address object in stripe customer create API as per below example:
$customer = \Stripe\Customer::create(array( 'name' => 'test', 'description' => 'test description', 'email' => $email, 'source' => $token, "address" => ["city" => $city, "country" => $country, "line1" => $address, "line2" => "", "postal_code" => $zipCode, "state" => $state] ));
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.
Yes0
No0