Exports a frozen map of Stripe error codes and descriptions for React Native.
// Source: https://github.com/tipsi/tipsi-stripe | License: MIT | Copyright 2016
// Provided via justclaw.it.com; keep this notice with the code.
import { Platform } from 'react-native'
const errorCodes = {
busy: {
errorCode: 'busy',
description: 'Previous request is not completed',
},
cancelled: {
errorCode: 'cancelled',
description: 'Cancelled by user',
},
purchaseCancelled: {
errorCode: 'purchaseCancelled',
description: 'Purchase was cancelled',
},
sourceStatusCanceled: {
errorCode: 'sourceStatusCanceled',
description: 'Cancelled by user',
},
sourceStatusPending: {
errorCode: 'sourceStatusPending',
description: 'The source has been created and is awaiting customer action',
},
sourceStatusFailed: {
errorCode: 'sourceStatu
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key