#nerdslice_terminal-connect

1 messages ยท Page 1 of 1 (latest)

proper stratusBOT
steel flickerBOT
#

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.

proper stratusBOT
#

๐Ÿ‘‹ 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.

inner aurora
#

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

keen kestrel
#

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?

inner aurora
#

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.

keen kestrel
#

Can you share a specific example payment that isn't behaving as expected?

inner aurora
#

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

proper stratusBOT
cinder sable
#

nerdslice_terminal-connect

inner aurora
#

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?

cinder sable
#

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

inner aurora
#

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'],
]
);

cinder sable
#

yeah see, you passed that stripe_account option. That is for Direct Charges.

inner aurora
#

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
],

            );
cinder sable
#

Yeah those are 2 completely different ways to integrate Connect.

inner aurora
#

Yes, the second did not do anything

cinder sable
#

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?

inner aurora
#

When that was called I did not get any responce that I expected, and want to do destination charges.

cinder sable
#

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

inner aurora
#

One second.

#

I have to re-pair it to my account

cinder sable
#

I'm only asking you to create a PaymentIntent and nothing else right now though

inner aurora
#

Ok one second.

proper stratusBOT
inner aurora
#

Getting ready to run the call to it

#

Sent

cinder sable
#

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

inner aurora
#

I am trying to get it, got an error, hold please, sorry

cinder sable
#

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

inner aurora
#

pi_3PO2UnHKxLvr7YBb06HCyu2z

tame vigil
#

Hi, taking a look here

inner aurora
#

My issue comes when the intent is passed to the termina;l

tame vigil
#

Ok, now. Have you created/registered the Reader on your own platform account?

inner aurora
#

I did and then had to remove it from registeration

tame vigil
#

You should now create/register the Reader on your platform account.

inner aurora
#

I have a customer in my store so can not re-register yet.