#jainnikesh

1 messages ยท Page 1 of 1 (latest)

sleek pagodaBOT
left quarry
#

Hi ๐Ÿ‘‹

alpine olive
#

Hi

left quarry
#

What do you mean "pay using an insurance card"?

#

Do you have an example API request or Payment Intent ID?

alpine olive
#

Do you know insurance card that is available in usa

#

So we are using a connected account then when the user tries to pay using the terminal using the insurance card

#

Then it's giving invalid amount

left quarry
alpine olive
#

No

#

Bro

#

Normal payment through card

left quarry
#

Are you using Stripe?

alpine olive
#

Yes we are using stripe

#

And we are creating a connected account for all our customers

left quarry
#

Okay so you should be able to provide the API request ID. At that point I can help answer your question

alpine olive
#

Okay wait

#

But that transaction never completed

#

So it's not showing in stripe dashboard

left quarry
#

Even a failed API request that throws an error is in your Account logs

alpine olive
#

We do not have logs

#

Stripe is not generated

left quarry
#

In the Stipe Dashboard, if you have access to the Developer Section, you should see any failed API requests in the Logs section.

alpine olive
#

Ok let me check

#

Insurance card do we need to set anything

#

Here

left quarry
#

I'm still waiting on an example. I can't really help more without one

alpine olive
#

Sha card

left quarry
#

An example Payment Intent that shows the error you are referencing. I really need something like that to offer more advise here.

alpine olive
#

Do you know about different types of cards

#

So, currently the practices receive virtual credit cards from insurances. These cards are loaded with balances for multiple patients at once. So if there are 10 patients who are insured by the same provider, the insurance will send a card of say $1000 to the practice that will hold the payments for all these 10 patients.

The practices currently create a dummy patient in their EHR ( like say the name is Cigna) and process the cards using this dummy patient and then they have to manually enter the payments for all the 10 patients into the EHR balance.

So this is kind of a workaround that I suggested them and it is working well till date but as the number of patients is increasing, it gets difficult to handle.

left quarry
#

I might be able to offer some insight if you provided an example of the errors you were mentioning ealier

alpine olive
#

I am getting only invalid amount

left quarry
#

On what?

alpine olive
#

When user try to do payment using insurance card

#

{
"error": {
"code": "card_declined",
"decline_code": "invalid_amount",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
"message": "Invalid amount.",
"param": "",
"request_log_url": "https://dashboard.stripe.com/logs/req_h4KASg32OXO6kY?t=1679596077",
"type": "card_error"
}
}

Learn more about error codes and how to resolve them.

#

POST /v1/payment_methods/pm_1MosrgFRSoISGwgOqva8BBNx/attach

left quarry
#

Thank you. That request log URL is what I've been asking for this whole time

alpine olive
#

Ohh ok

#

Hey

#

Can you please provide details now ?

sleek pagodaBOT
alpine olive
#

Hey

#

Hey

normal summit
#

๐Ÿ‘‹ We're still looking - please be patient!

alpine olive
#

Ok

#

There

#

I think there must be some capability Missing in this connected account

normal summit
#

The reason this is failing is because we run a validation on the card when it's attached to a customer. The card issuer is declining that validation with a decline code meaning "invalid_amount"

alpine olive
#

Sha or acha kind of

normal summit
#

If you don't want this validation to be happening you need to be passing "validate: false" when you attach the PaymentMethod to your customer

alpine olive
#

What type of validation are you doing

#

Like that card have amount or not ?

#

Because previously same this happened for another connected account

normal summit
#

We're just validating the card with the issuer to ensure it's a valid card

alpine olive
#

But something we did for that account then their customers now able to use insurance card

#

This is happening only for insurance card

normal summit
#

Again, this is a decline that is coming from the card issuer themself - it's not coming from us so there isn't a "setting" on your stripe account that would change this. The only thing that you could do is bypass the validation by passing validate: false when you make the attachment call

alpine olive
#

But that is risky right to passing validation false

#

So there must be some other way

#

There must be something that I have to enable

normal summit
#

Again, there's no setting or "thing you have to enable"

#

THis is purely a decline on the card issuer's end

#

Really what you should be doing is using SetupIntents to collect card details, but for you specific flow (or creating the PM and attaching it) the only way to use that card would be for you to bypass the validation on that attachment call

alpine olive
#

So there is no risk ?

normal summit
#

The only risk would be that you save payment methods that don't work - but you can confirm whether they work or not when they're actually used for payment