#waleedumer42-transfer
1 messages · Page 1 of 1 (latest)
yes, you are right
It'd be the ch_xxx ID of the Charge that the transfer ties to: https://stripe.com/docs/connect/charges-transfers#transfer-availability
Where you get that from specifically would depend on your integration
I am using PaymentIntent
Need to transfer amount using "Separate charges and transfers"
Yep, you can pass a pi_xxx ID too
so for source_transaction value i can use pi_xxx, right?
Ah, I'm mistaken. You cannot
So you'd need to get the underlying Charge object from the PI: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-charges
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can you paste the pi_xxx ID please? Doesn't look like that Payment Intent has even been confirmed
pi_3KgRXbBHbro2M23K1FLQUGnr
status = "requires_payment_method"
for this payment_intent
Yup, there's no payment method attached for us to even charge/confirm. You've just created a Payment Intent.
How are you integrating?
I am creating payment intent using stripe php sdk, then taking client secret from the response and sending to my JS application
in JS application I am using cardelement
which on submission, processes my payment and gives me the response
Well it doesn't appear that any confirmation attempt with Stripe.js was made for that specific PI
What is 'submission' in this context?
let me try the whole process, it will confirm pi_xxx , just a sec plz
i will share the pi_xxx with you.
pi_3KgSFhBHbro2M23K0M8tuBoM
can you check above pi_xx plz
Sure, that was confirmed and I can see see the Charge object that represents the payment on the PI response: ch_3KgSFhBHbro2M23K048IsJAF
okay great, so If i retrive this payment intent, it will give me the ch_xxx value, ?
Yep, exactly! There'll be a charges array on the PI object
okay great, let me try it, please don't archive this thread yet,
Well, that depends: https://stripe.com/docs/currencies#presentment-currencies
I am getting this error
The currency of source_transaction's balance transaction (usd) must be the same as the transfer currency (hkd)
payment_intent = pi_3KgTJNBHbro2M23K0dKU1swM
can you please assist?
The error is pretty clear, no?
You're a US account/platform so you can only settle in USD balances: https://stripe.com/docs/connect/bank-debit-card-payouts
Your HKD PI is therefore converted to USD balance, hence the 'currency of source_transaction's balance transaction (usd)' message
So if I use the account that is created in Hong Kong (hkd), then I will be able to transfer in hkd ?
Yes, if you're using an account that settles in hkd then you should be able to transfer in hkd as well.