#negative10xprogrammer

1 messages · Page 1 of 1 (latest)

hallow graniteBOT
cobalt jacinth
#

A decline is a type of error

#

So you would want to handle errors

#

And also handle declines

graceful forge
#

Ok so its nestled inside the error code?

like what I do here?

#
            if (ex.StripeError != null && ex.StripeError.Code == StripeErrorCodes.ResourceMissing)
                return PaymentStatus.Cancelled;
#

or no thats just error code nvm

cobalt jacinth
#

A decline is a type of card error

graceful forge
#

ah ok its only related to cards?

cobalt jacinth
#

No we actually throw card errors for non card payments too

#

Basically a payment method error is just called a card error

graceful forge
#

ah ok so they are payment errors, and stripe error codes are just... more general errors

cobalt jacinth
#

Yeah

#

Recommend you read that error handling doc in full though

graceful forge
#

but there are some payment specific stuff in error codes, like CardDeclined and Insufficient Balance

cobalt jacinth
#

That should clear things up more

graceful forge
#

yes alright thx

cobalt jacinth
#

yeah

#

No problem

graceful forge
#

these are error code and decline code respectively, yes?

#

specifically the first one, code = error code?