#hamid-invalid-parameter
1 messages · Page 1 of 1 (latest)
Would you mind double checking that ID for me? I'm having trouble finding the request that you're referring to on that account.
Can you provide more details of how you're making the request then? Particularly, how you're passing on_behalf_of into that.
stripe_params = {
line_items: items,
locale: stripe_locale(locale),
customer: stripe_customer_id,
customer_email: stripe_customer_id ? nil : (customer_email),
mode: 'payment',
success_url: callback_success_url,
cancel_url: callback_cancel_url,
metadata: stripe_metadata,
payment_intent_data: {
description: stripe_metadata[:description],
metadata: stripe_metadata,
on_behalf_of: on_behalf_of,
statement_descriptor: Config.get_config('third_party.stripe.statement_descriptor', location_id: location_id),
statement_descriptor_suffix: Config.get_config('third_party.stripe.statement_descriptor_suffix', location_id: location_id),
}
}
where account id is as i mentioned above
and it is used for on_behalf_of
Oh, apologies, I didn't realize that was the account ID of the connected account, can you share the account ID of the platform account? Nothing is jumping out at me as being wrong with that snippet, so I'd like to find the failed request and see exactly what we received.
Hm, I'm not seeing the account you referenced as being connected to a Platform account. Can we take a step back, and can you help me understand what it is you're trying to accomplish? As mentioned in our API spec, payment_intent_data.on_behalf_of is for use in scenarios where you're leveraging Stripe Connect, but that doesn't appear to be the case here.
i am also confused, just trying to grasp the understanding
so that means i have to connect with the real account
with platform in order to accoumplist the stripe checkout session creation
That depends on what you're trying to accomplish. If aren't trying to set up an integration that uses Stripe Connect, then yes, you can still create Checkout Sessions. You would just omit the on_behalf_of parameter if it's not applicable to your scenario.
can you tell me if the account id, i mentinoed above is connected to my platform or not
i have its publish key and secret key
as it might be possible that account id might exists in my database, but in reallity its not connected
therefore on_bhealf_of not working fine.
As far as I can tell, the account that you provided an ID for earlier is not connected to any Platform account.