#waleedumer42-transfer

1 messages · Page 1 of 1 (latest)

full token
#

Hey, I assume you're using the source_transaction parameter?

tame terrace
#

yes, you are right

full token
tame terrace
full token
#

Where you get that from specifically would depend on your integration

tame terrace
#

I am using PaymentIntent

#

Need to transfer amount using "Separate charges and transfers"

full token
#

Yep, you can pass a pi_xxx ID too

tame terrace
#

so for source_transaction value i can use pi_xxx, right?

full token
#

Ah, I'm mistaken. You cannot

tame terrace
#

in my case, its giving me these values.

#

Below response from PaymentIntent

full token
#

Can you paste the pi_xxx ID please? Doesn't look like that Payment Intent has even been confirmed

tame terrace
#

pi_3KgRXbBHbro2M23K1FLQUGnr

#

status = "requires_payment_method"
for this payment_intent

full token
#

Yup, there's no payment method attached for us to even charge/confirm. You've just created a Payment Intent.

#

How are you integrating?

tame terrace
#

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

full token
#

Well it doesn't appear that any confirmation attempt with Stripe.js was made for that specific PI

#

What is 'submission' in this context?

tame terrace
#

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

full token
#

Sure, that was confirmed and I can see see the Charge object that represents the payment on the PI response: ch_3KgSFhBHbro2M23K048IsJAF

tame terrace
#

okay great, so If i retrive this payment intent, it will give me the ch_xxx value, ?

full token
#

Yep, exactly! There'll be a charges array on the PI object

tame terrace
#

okay great, let me try it, please don't archive this thread yet,

tame terrace
#

Quick question, can Charges accept currency=hkd?

#

hong kong dollar?

full token
tame terrace
#

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?

full token
#

Your HKD PI is therefore converted to USD balance, hence the 'currency of source_transaction's balance transaction (usd)' message

tame terrace
#

So if I use the account that is created in Hong Kong (hkd), then I will be able to transfer in hkd ?

wraith orchid
#

Yes, if you're using an account that settles in hkd then you should be able to transfer in hkd as well.