#joseDEvS-connect-transfers
1 messages · Page 1 of 1 (latest)
Hey there 👋 just confirming some details. It sounds like you're using separate charges and transfers, is that right?
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
I'd suggest taking a look at the source_transaction parameter, it associates the transfer with an incoming payment:
https://stripe.com/docs/connect/charges-transfers#transfer-availability
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
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.
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
The checkout session already makes the charge for you, you don't need to (and shouldn't) make a new one.
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}}",
]);
Please bear with me while I double check something.
Yes, of course
If you retrieve the checkout session, and expand the payment intent, do you see a charge ID inside of the charges hash?
@south oriole were you able to locate the charge ID?
yes, in that this toby