I have two Stripe accounts:
# Stripe API Keys
STRIPE_KEY=pk_test_abc
STRIPE_SECRET=sk_test_abc
STRIPE_KEY_MAPPING=pk_test_opr
STRIPE_SECRET_MAPPING_MASTER=sk_test_opr
I put both in an array:
$stripe_accounts = [
env('STRIPE_SECRET'),
env('STRIPE_SECRET_MAPPING_MASTER')
]
Now I want to create user in both accounts :
foreach ($stripe_accounts as $item) {
Stripe::setApiKey($item);
$hotel = session('hotel');
$stripeUser = $hotel->createOrGetStripeCustomer();
$hotel->updateDefaultPaymentMethodFromStripe();
}
I have no errors, but when I check stripe dashboard for this account STRIPE_KEY_MAPPING
I don't see any test data. How can I make a flow in which I create same Stripe customer in two different accounts?