#dpelkey98

1 messages · Page 1 of 1 (latest)

loud cedarBOT
fast lynx
#

I created a payment intent with transfer_data set using the original amount-500 and set the destination as another connect account ID, but I either don't know how to view the transfer on the Stripe dashboard or it didn't work.

forest current
#

It does work in test mode

#

Not dashboard experts in here, so not sure where to view on the dashboard exactly

#

But if you log in as the connect account you should see it somehwere

fast lynx
#

Ok, I'll play around a bit and see if I can find it.

But I would also like some clarification.
If I have an original charge amount of 20 (2000 cents/pence/etc)
and I set the transfer_data.amount to 2000-500
1500 is what is sent to the the transfer_data.destination, right? Or is it the other way around?

#

Meaning 1500 is sent to destination and 500 is sent to the platform stripe account?

forest current
#

Correct

#

Connect would get 1500

#

Platform would get 500 minus any fees

fast lynx
#

Ok, cool. Would you mind taking a look at the payment intent I made for me?

Checking the request logs and it didn't apply the transfer_data in the request when using stripe.paymentIntents.create()

forest current
#

Can you share the payment intent id?

fast lynx
#

pi_3Ng7c4HuV3Y4v6TI0iQvTokg

Not sure why, but here is my code as well:

return stripe.paymentIntents.create({
        amount,
        currency: 'gbp',
        customer: customerId,
        payment_method: paymentMethodId,
        metadata: {
            cardBrand: card.brand,
            cardLast4: card.last4,
            paymentId: platform.paymentId,
            uid: platform.uid
        },
        transfer_data: {
            amount: amount-500,
            destination: toAccountId
        }
    })
#

And the request parameters from the Stripe dashboard that the API actually received (all test data):

{
  "currency": "gbp",
  "payment_method": "pm_1NdIUxHuV3Y4v6TIIBKR6qUq",
  "metadata": {
    "cardLast4": "3238",
    "cardBrand": "Visa",
    "uid": "xQSln9rCg2AqaggS59NX",
    "paymentId": "2iWGS0PiaRmUWp8xEJIY"
  },
  "amount": "5000",
  "customer": "cus_OQ8iZNrefwmc5E"
}
forest current
#

Yeah from our end it appears as if you never sent transfer_data

#

Can you add some more log statements in your code?

#

like store the result of creating the payment intent in a variable above and print out the contents

fast lynx
#

In which state would you want it. Created on backend or confirmed on frontend?

forest current
#

backend

#

That's where you're trying to pass transfer_data

fast lynx
#

Sure, just one minute

#

Actually, think I just found the issue

forest current
#

Oh ok cool

#

What was it

fast lynx
#

I'm using grouped firebase functions and there was a mix up on front-end between creating a normal intent and one with a transfer

#

So it looked like it was working because technically it was, but just as a normal platform payment

forest current
#

Ah ok I see

#

Glad you got it sorted

fast lynx
#

Yep, just dingbot helping a dingbat 😅 In any case, thanks for your help!