#djordje
1 messages · Page 1 of 1 (latest)
Hi 👋
Can you share the request ID for the request that is generating this error?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Okay that error is pretty explanatory. The mandate exists on a different merchant account that the on_behalf_of specified in the Payment ELement
You cannot mix and match those objects
What that actually means ? what I have to do in order to work ?
on_behalf_of makes the account identified the Merchant of Record. This means the mandate must also exist on that account
What are you trying to do? Big picture
It looks like you are trying to do something related to Connect but I don't see the request as being Connect related.
I'm trying to create paymentIntent ...
var options = new PaymentIntentCreateOptions
{
PaymentMethod = paymentRequest.StripePaymentMethodId,
Customer = paymentRequest.StripeCustomerId,
Currency = paymentRequest.IsoCurrencyCode.ToLower(),
Amount = paymentRequest.TotalAmountDueCents,
Mandate = mandateId,
OnBehalfOf = paymentRequest.ConnectedAccountId,
ReceiptEmail = paymentRequest.ReceiptEmail,
OffSession = paymentRequest.AutomaticPayment,
Confirm = confirm,
ErrorOnRequiresAction = true,
PaymentMethodTypes = new List<string>
{
PaymentProviderConstants.PaymentMethods.PreauthorizedDebit
},
Metadata = paymentRequest.Metadata
};
if I search for mandateId .. I only get setupIntent .. I also don't see that setupIntent has 'on_behalf_of" object ...
If you are just trying to create a Payment Intent, why are you passing on_behalf_of?
bc ... money should end up on that connected account
But your Payment Intent request does not appear to be Connect related. What funds flow are you following?
In the table of Charge types, which one are you following?
wait ... I need to include me teammate form US .. Jane... she knows more about that ...
she isn't available right now ... I think the one in the middle ...but I'm not 100% sure (Destination charges)
Okay, then I recommend adjusting how you make the request to create the Payment Intent to match what we show in the first code snippet here:
https://stripe.com/docs/connect/destination-charges
so ... basically you say that I should remove on_behalf_of and add TransferData ?
If all you want is to send money to the Connected Account then yes. on_behalf_of does more things that just that, including requiring the mandate be associated with the Connected Account
ok .. thank you .. I'll give it a try .. later .. Jane might join discussion ... maybe she will has additional question/s
Your colleague is more than welcome to ask questions here as well.