#nerdslice_terminal-connect
1 messages ยท Page 1 of 1 (latest)
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.
- nerdslice_api, 5 days ago, 20 messages
- nerdslice_api, 6 days ago, 4 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1247614482822201427
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
So we want to charge on behalf of and when the funds are confirmed transfer them immediately to the connected account.
We will do the transfer after the processing is completed, and do that during the stripe webhook receipt
Can you clarify what is not working with your code that's not using on_behalf_of? Do you get an error? Are you seeing issues when you make the Transfer call?
Without the onbehalf our code works fine, I am attempting to switch over to us collecting the funds then transferring to our connected accounts
But it charges directly to the customer's connected account, and doesn't allow us to control the rates a store gets through us.
Can you share a specific example payment that isn't behaving as expected?
req_cbdFfB808fNdkz we cancel the current reader display and then go to confirmIntent however it failed on reader, and the reader was properly registered at the time to my account, I have since moved it back to a connected account
Okay so you are making that API Request on your own platform account but the Reader exists on your connected account right? I think you forgot to set the Stripe-Account header in your call: https://stripe.com/docs/connect/authentication#stripe-account-header
nerdslice_terminal-connect
wouldnt the on_behalf_of be what I needed to charge and collect on their behalf and then transfer to their account from our acct?
You seem to be mixing up various flavours of Connect all together right now with the way you framed your question.
If you want to use on_behalf_of, that means you want everything to happen on your platform account right?
If so, then when you create/register the Reader, it should be on your own platform account. But you did not do that. When you called the setReaderDisplay API method you used the Stripe-Account header, as if you planned to use Direct Charges instead
Here is current code $paymentIntent = \Stripe\PaymentIntent::create(
[
'amount' => $total,
//get country currency from team.
'currency' => strtolower($lane->country).'d',
'payment_method_types' => ['card_present'],
'capture_method' => 'automatic_async',
//get package and determine percent to charge for fee.
//'tax' => $totaltax,
'application_fee_amount' => str_replace('.', '', number_format(round($total * 0.0003, 2), 2, '.', '')),
//'processing' => 5
],
[
'stripe_account' => $team['connect_id'],
]
);
yeah see, you passed that stripe_account option. That is for Direct Charges.
Here is what I wanted to do so it went on our conencted. $paymentIntent = \Stripe\PaymentIntent::create(
[
'amount' => $total,
//get country currency from team.
'currency' => strtolower($lane->country).'d',
'payment_method_types' => ['card_present'],
'capture_method' => 'automatic_async',
'on_behalf_of' => $team['connect_id'],
//get package and determine percent to charge for fee.
//'tax' => $totaltax,
//'application_fee_amount' => str_replace('.', '', number_format(round($total * 0.0003, 2), 2, '.', '')),
//'processing' => 5
],
);
Yeah those are 2 completely different ways to integrate Connect.
Yes, the second did not do anything
I'm sorry I don't really know what those words mean ๐
what does "did not do anything" mean? It's code so it would do something, either create a PaymentIntent or raise an error
Let's pause for a second.
Pick the exact flow of funds you want: Direct Charges or Destination Charges?
When that was called I did not get any responce that I expected, and want to do destination charges.
Okay you want to do Destination Charges so that second code is what you want, but it's only a small part. Everywhere that your code is explicitly passing a connected account id needs to be updated to not do that
So step 1: create the PaymentIntent, log the id in the response and share that with me so I can verify
I'm only asking you to create a PaymentIntent and nothing else right now though
Ok one second.
sorry, sent what?
What we need from you is to run the code and share the exact PaymentIntent id here so we can help you
I am trying to get it, got an error, hold please, sorry
sounds good. I have to run but @tame vigil will take over to help
@tame vigil : they were using Direct Charges by mistake, they are moving to Destination Charges with Terminal. They need to change all their calls to not pass the Stripe-Account header anymore, and they need the Terminal Reader registered on the platform account too
pi_3PO2UnHKxLvr7YBb06HCyu2z
Hi, taking a look here
Yeah, verifying that the request https://dashboard.stripe.com/logs/req_EdCjfOMMb0JarQ is using Destination Charges now.
My issue comes when the intent is passed to the termina;l
Ok, now. Have you created/registered the Reader on your own platform account?
I did and then had to remove it from registeration
You should now create/register the Reader on your platform account.
I have a customer in my store so can not re-register yet.