#kiwimarc-retrieve-payment-methods
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ when making requests for your Connected Accounts, you use the stripe_account parameter (exact syntax depends on library) to do so:
https://stripe.com/docs/api/connected_accounts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I tried that, because thats how I have done it in all the other api calls but here it just dont want to work
How is that request structured in your PHP code? Could you share that snippet?
// Get Stripe Card
function stripe_customer_card($customer_guid, $user_id) {
$config = get_config();
$stripe = new \Stripe\StripeClient($config['seckey']);
return $stripe->customers->retrieve($customer_guid,["stripe_account" => get_user_info($user_id,'stripe')['key_value']]);
}
Can you add an empty array between $customer_guid and the array that has the stripe_account parameter? Similar to what you see in the example snippet where a charge is being retrieved.