#djordje

1 messages · Page 1 of 1 (latest)

sage solarBOT
lusty shore
nocturne hamlet
lusty shore
#

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

nocturne hamlet
#

What that actually means ? what I have to do in order to work ?

lusty shore
#

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.

nocturne hamlet
#

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 ...

lusty shore
#

If you are just trying to create a Payment Intent, why are you passing on_behalf_of?

nocturne hamlet
#

bc ... money should end up on that connected account

lusty shore
#

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?

nocturne hamlet
#

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)

lusty shore
nocturne hamlet
#

so ... basically you say that I should remove on_behalf_of and add TransferData ?

lusty shore
#

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

nocturne hamlet
#

ok .. thank you .. I'll give it a try .. later .. Jane might join discussion ... maybe she will has additional question/s

lusty shore
#

Your colleague is more than welcome to ask questions here as well.