#devertry|deepsheep

1 messages · Page 1 of 1 (latest)

lapis ferryBOT
amber depot
#

What is a 'pay-in'?

fickle sinew
#

the account wich get the fund and then pay out

amber depot
#

But what Stripe object/API represents the action you're describing?

fickle sinew
#

??

amber depot
#

I don't understand what you're trying to do. You say a 'pay-in', but that's not a concept in Stripe

#

Are you transferring balance between accounts via the Transfers API?

fickle sinew
#

ok

#

I have the account platform AA wich get the fund

#

and B it's a connected account with who would like to transfert

#

for that I need to get some data, set as metadata in the checkout session

#

I need to get the metadata in this checkout session forward in B

#

and I don't know how to et them

#

I see them in A but not in B

amber depot
#

Ok, but how are you transferring the balance from A -> B?

fickle sinew
#

checkout session

amber depot
#

Can you share an example cs_xxx?

fickle sinew
#
 checkout_session = stripe.checkout.Session.create(
            mode="payment",
            line_items=[{
                "price_data": {
                    "unit_amount": int(price),
                    "currency": "eur",
                    "product_data": {
                        "name": product_name,
                    }
                },
                "quantity": 1
            }],
            payment_intent_data={
              "application_fee_amount":  int(price * 0.05),
              "transfer_data": {"destination": STRIPE_NOMICA_ID},
                "metadata": {
                    "user_id": user_id,
                    "session_id": session_id
                }


            },
            metadata={
                'user_id': user_id,
                'session_id': session_id
            },
            success_url=env.ORIGIN_FRONT_END + "/payment/success",
            cancel_url=env.ORIGIN_FRONT_END,
        )

#

thanks for all !

lapis ferryBOT
fresh quest
#

Hey! Taking over for my colleague. Metadatas doesn't propagate from one object to another. In this request your are passing some metadatas into the PaymentIntent resulting from the Checkout Session.

fickle sinew
#

thanks

#

yess so how an I connect metada to pass to the connected account ?

fresh quest
#

You can get the source transaction from a transfer to the Connected Account and get the metadata from the PaymentIntent

fickle sinew
#

so from py_1N4LpwL this I can get the metadata ?

fresh quest
fickle sinew
#

I use checkout session ....

fresh quest
fickle sinew
#

in the connected account ?

fresh quest
#

The Platform is the one who created the Checkout Session

fresh quest
fickle sinew
#

ha ok

#

so I cannot get the metada from the connected account ?

#

ok will do by hand at the begining and transfert fund with a script

fresh quest
#

Don't hesitate to come back if you have any follow up question about this.

fickle sinew
#

ok thanks for all 🙂