#negative10xprogrammer
1 messages · Page 1 of 1 (latest)
A decline is a type of error
So you would want to handle errors
And also handle declines
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
A decline is a type of card error
ah ok its only related to cards?
No we actually throw card errors for non card payments too
Basically a payment method error is just called a card error
ah ok so they are payment errors, and stripe error codes are just... more general errors
but there are some payment specific stuff in error codes, like CardDeclined and Insufficient Balance
That should clear things up more
yes alright thx