#hamid-invalid-parameter

1 messages · Page 1 of 1 (latest)

royal ember
#

Hi 👋
Do you have the ID of a request (req_XXX) that returned that error?

crisp plaza
#

yup

#

acct_1K7eI4D8VGcHYtw6

royal ember
#

Would you mind double checking that ID for me? I'm having trouble finding the request that you're referring to on that account.

crisp plaza
#

oh

#

it was not reqeust id

#

it was account id

#

for now do not have req_id

royal ember
#

Can you provide more details of how you're making the request then? Particularly, how you're passing on_behalf_of into that.

crisp plaza
#

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

royal ember
#

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.

crisp plaza
#

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

royal ember
#

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.

crisp plaza
#

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.

royal ember
#

As far as I can tell, the account that you provided an ID for earlier is not connected to any Platform account.