#joseDEvS-connect-transfers

1 messages · Page 1 of 1 (latest)

tough garden
#

Hey there 👋 just confirming some details. It sounds like you're using separate charges and transfers, is that right?

south oriole
#

Yes, that's right, but those funds come out of the balance that is manually recharged, I told him about top-ups, but my client doesn't want it

tough garden
south oriole
#

as I combine it with checkout session, I used that but failed to combine it with chekcout session

#

How to combine if I create a checkout session

tough garden
#

What do you mean? This is a parameter on the transfer, which if you're using separate charges and transfers happens outside of the checkout session flow.

south oriole
#

but in that parameter "source_transaction", it requires a "{CHARGE_ID}",
pretend to pay twice, I don't understand that part of creating a charge

$ charge = \ Stripe \ Charge :: create (array (
"amount" => 7500,
"currency" => 'usd'
"source" => "tok_visa",
"transfer_group" => "",
));

#

payment received in checkout session

#

I do not understand that, that is created as if the income was doubled, that is created when it is a charge

#

have if you clarify that to me, please

tough garden
#

The checkout session already makes the charge for you, you don't need to (and shouldn't) make a new one.

south oriole
#

from that session object, from where I get the "charge_id"

#

to put that parameter, "source_transaction" => "{CHARGE_ID}",

#

of the session object that I take out parameter to place it in "source_transaction" => "{CHARGE_ID}"

$ transfer = \ Stripe \ Transfer :: create ([
"amount" => 1000,
"currency" => "usd",
"source_transaction" => "{CHARGE_ID}",
"destination" => "{{CONNECTED_STRIPE_ACCOUNT_ID}}",
]);

tough garden
#

Please bear with me while I double check something.

south oriole
#

Yes, of course

tough garden
#

If you retrieve the checkout session, and expand the payment intent, do you see a charge ID inside of the charges hash?

tough garden
#

@south oriole were you able to locate the charge ID?

south oriole
#

yes, in that this toby