#daniyal_11692
1 messages · Page 1 of 1 (latest)
Hello daniyal_11692, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• daniyal_11692, 2 days ago, 13 messages
• daniyal_11692, 3 days ago, 2 messages
• daniyal_11692, 4 days ago, 93 messages
• daniyal_11692, 5 days ago, 5 messages
Can you share the request id req_xxx from https://dashboard.stripe.com/test/logs ?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
It looks like a mismatched parameter
req_b8DyMHjq9oNJps
Okie. I see you specified on_behalf_of on creating SetupIntent. Why did you do that and is there a Doc you are following?
i'm creting the setupintent for the connected account
How do you initialize the Payment Elements?
Did you also specify onBehalfOf https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-onBehalfOf ?
is this on the frontend>
Yes
this is the doc i followed with setup intent
i'm migrating from card elemnt to payment element
Yes, but because you used on_behalf_of in backend, you also need to use on_behalf_of on frontend for the consistency, or the API will complain as the error message
can you share some code example? finding a bit difficult fto understand from the docs
Yeah, so around this part
const stripe =
Stripe('pk_test_xxx');
const options = {
mode: 'setup',
currency: 'usd',
onBehalfOf: 'acct_xxx' // your connected account id here
};
const elements = stripe.elements(options);
Can you try this code?
now this is the error: 'You passed an empty string for 'deferred_intent[on_behalf_of]'. We assume empty values are an attempt to unset a parameter; however 'deferred_intent[on_behalf_of]' cannot be unset. You should remove 'deferred_intent[on_behalf_of]' from your request or supply a non-empty value.'
Did you specify the correct connected account id?
can i limit my paymentelement to only show card as mapyment method?
where would we add this param?
var paymentElement = elements.create('payment', {
payment_methods: ['card'],
});
is this correct?
Ah if you are using the deffered method, then yes you can specify it when creating the Element
what if i want to support any other . can i just add them speareted by comma?