Source: https://stripe.com/docs/connect/managed-accounts#requirements-for-creating-managed-accounts
exception 'Stripe\Error\InvalidRequest' with message 'Address for business must match account country' in /var/www/app/vendor/stripe/stripe-php/lib/ApiRequestor.php:98 from API request 'req_6jdMDN11krhwSj'
Stack trace:
#0 /var/www/app/vendor/stripe/stripe-php/lib/ApiRequestor.php(210): Stripe\ApiRequestor->handleApiError('{? "error": {?...', 400, Array, Array)
#1 /var/www/app/vendor/stripe/stripe-php/lib/ApiRequestor.php(60): Stripe\ApiRequestor->_interpretResponse('{? "error": {?...', 400, Array)
#2 /var/www/app/vendor/stripe/stripe-php/lib/ApiResource.php(105): Stripe\ApiRequestor->request('post', '/v1/accounts', Array, Array)
#3 /var/www/app/vendor/stripe/stripe-php/lib/ApiResource.php(137): Stripe\ApiResource::_staticRequest('post', '/v1/accounts', Array, NULL)
#4 /var/www/app/vendor/stripe/stripe-php/lib/Account.php(39): Stripe\ApiResource::_create(Array, NULL)
#5 /var/www/app/app/opsmatrix/billing/StripeBilling.php(1456): Stripe\Account::create(Array)
{
"email": "rese...@test.com",
"password": "firstPass123",
"first_name": "Alan",
"last_name": "Gervais",
"personal_address": {
"street_address": "123 Test Road",
"locality": "Beverly Hills",
"postal_code": "90210",
"country": "US",
"region": "CA",
"local_timezone": null,
"latitude": 45.545622,
"longitude": -75.280745
},
"business_type": "company",
"business_name": "Reseller 1",
"business_address": {
"street_address": "123 Test Road",
"locality": "Beverly Hills",
"postal_code": "90210",
"country": "US",
"region": "CA",
"local_timezone": null,
"latitude": 45.545622,
"longitude": -75.280745
},
"business_phone": "555-555-7777",
"business_currency": "usd",
"application_fee_percent": 10.99,
"date_of_birth": "1976-06-14"
}--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at http://groups.google.com/a/lists.stripe.com/group/api-discuss/.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.