#usama

1 messages · Page 1 of 1 (latest)

proper yarrowBOT
violet oar
#

Hi. Can you share the request id where this happened?

hollow grail
violet oar
#

Yes I know

#

I need the request id

#

Can you share it here?

hollow grail
#

how can i find request id?

violet oar
#

Look at the link I shared above

hollow grail
#

sure

#

req_68fG3uTPtiSf6s

#

hi, this is the request id

#

hi where are you, i am waiting.

violet oar
#

You need to be patient. There are tons of other folks I'm helping too

hollow grail
#

sure

violet oar
#

That request was just a declined charge

#

"Your card was declined. This transaction requires authentication.",

hollow grail
#

yes, but the issue is its not picked the customer default card that is 4242.
its picking the "0341" old card which is not default card.

violet oar
#

You pass source: card_1NBhLXLKHXrDeJhEiimotKB7

#

Which is the old card

#

So that's the one that will be used in the charge

hollow grail
#

not i passed the customer id.

violet oar
#

Look at the link I sent you

#

It's using the source you manually specified

#

That's why

hollow grail
#

oh i see, error is the loging in that case

#

req_b3FaxqogfQ4ldc

#

can u check this, i only passed the customerId
not the source.

#

Request body
{
"currency": "usd",
"customer": "cus_NuYPOo95UmeHxU",
"amount": "1059",
"capture": "False"
}

violet oar
#

Oh it's because the default_source on the customer is card_1NBhLXLKHXrDeJhEiimotKB7

#

The Charges api (which is legacy) checks default_source first

#

Recommend using PaymentIntents really. Charges isn't recommended anymore

hollow grail
#

but in the dashboard its showing the other default card.

violet oar
#

Because that's default payment method

#

It's a different concept

hollow grail
#

with the PaymentIntents, can i check that customer has sufficient balance in card before the charge?