#jsanzloz
1 messages ยท Page 1 of 1 (latest)
Working with Stripe Connect, trying to show Payments only in the Connected account, and not in the Platform account. Details in thread.
Trying to only show the Payment record in the connected account, and not in the Platform account. In the Platform account I'd expect only to see the application_fee_amount.
The logic behind this reasoning is: if the connected account is the one that is going to have their own details in the final invoice, I should not have a record of the Payment/Charge in the plaftorm account.
Via Postman, I think I got this right, hitting the {{baseUrl}}/v1/payment_intents endpoint and passing, and I can see the Payment in the connected account https://ibb.co/nr4chrX , no payment at all in the platform account, but only the collected fee https://ibb.co/nr4chrX
amount
currency
application_fee_amount
confirm
payment_method
and as header Stripe-Account acct_1Ob...
However, when I try to do it in my app, I'm blocked. Working with ruby on rails, part of the method that handles the checkout is what I list below. I call this using the platform account API keys. The error I get https://ibb.co/82jfNzT and there is a Payment record (incomplete status, as expected) created within the connected account.
first snippet
If I use this code (below) instead, that creates the Payment in the Platform account, and a record of the Payment in the Connected account, without info about the customer nor the payment method https://ibb.co/cTqmYzG
second snippet
However, when I try to do it in my app, I'm blocked. Working with ruby on rails, part of the method that handles the checkout is what I list below. I call this using the platform account API keys. The error I get https://ibb.co/82jfNzT and there is a Payment record (incomplete status, as expected) created within the connected account.
Can you share the Checkout Session ID (cs_xxx)?
cs_test_b1tg3y9hHp3c5jxK6WBIZVGZfju6lWbjq6UCD33OKxQxqZjnAnmrcnWGEs
what do you mean? does the URL I shared above work or not?
the one you shared works
the URL I shared is simply the url property of the Checkout Session cs_test_b1tg3y9hHp3c5jxK6WBIZVGZfju6lWbjq6UCD33OKxQxqZjnAnmrcnWGEs
so looks like you are not correctly retrieving the url property
๐ค I'm going to investigate, thanks for the lead