#Eranga-balance

1 messages · Page 1 of 1 (latest)

tribal quest
#

mainly if you try to call /v1/transfers and don't have enough available balance for the amount you're trying to transfer

carmine marsh
#

Great, thanks

#

What about cardholder_phone_number_required ?

tribal quest
#

only relevant if you use our Issuing product to issue your own credit cards to providers in your platform

carmine marsh
#

So that means the credit card is issued from Stripe?

tribal quest
#

yes, it's a product where you can issue a credit card with spending controls, funded from your Stripe account's balance(https://stripe.com/docs/issuing) (e.g. you might use Connect for something like a ride-sharing app where you charge end-customers and then give your service providers a card they can use for expenses or something)

#

that error message is specific to a feature of that product so it's irrelevant if you're not using it

carmine marsh
#

Great thanks. How about charge_exceeds_source_limit?

tribal quest
#

does the description on that page not make it clear enough? sorry but I don't want to spend the next hour explaining each and every code on that page :p

carmine marsh
#

Sorry about that. We are going through each and every error code we could get from Stripe. And the ones we don't understand we are asking your help to clarify

#

Because in the API, we don't see which errors we could get if we use a certain endpoint

#

If you could redirect me to something meaningful, that would be a time saver

tribal quest
#

yeah I don't think that's the right approach, the right approach is to test your actual code you're using with various test cards (https://stripe.com/docs/testing#cards-responses) or test details for the specific payment methods you use and see what errors can occur in the code paths you use

carmine marsh
#

You mean trial and error?

#

That would mean we would have lot of combinations if we check the paths with different types of payment methods etc.

tribal quest
#

I would call it robustly testing your code paths

#

I can't see how looking at a long list of error codes when half of them might be for products you don't even use like Issuing is more efficient

#

in any case for 90% of errors the behaviour is mostly the same, show the customer a generic 'payment failed' message, and log the error for your own exception reporting

carmine marsh
#

The idea was to identify the errors that might be meaningful to the customer (e.g.: amount_too_large ) so that they know that this is something that they cannot do.

#

I agree that going through this entire list is not that productive since we don't know most of the errors since we are not using all the features Stripe provides.