@paynext/sdk 0.0.57 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +117 -6
- package/dist/index.es.js +11865 -5293
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +91 -55
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,118 @@ export declare interface CheckoutTranslate {
|
|
|
132
132
|
success: string;
|
|
133
133
|
error: string;
|
|
134
134
|
};
|
|
135
|
+
errors?: {
|
|
136
|
+
doNotHonor: string;
|
|
137
|
+
insufficientFunds: string;
|
|
138
|
+
limitExceeded: string;
|
|
139
|
+
cardholdersActivityLimitExceeded: string;
|
|
140
|
+
expiredCard: string;
|
|
141
|
+
invalidCreditCardNumber: string;
|
|
142
|
+
invalidExpirationDate: string;
|
|
143
|
+
noAccount: string;
|
|
144
|
+
cardAccountLengthError: string;
|
|
145
|
+
noSuchIssuer: string;
|
|
146
|
+
cardIssuerDeclinedCvv: string;
|
|
147
|
+
voiceAuthorizationRequired: string;
|
|
148
|
+
processorDeclinedPossibleLostCard: string;
|
|
149
|
+
processorDeclinedPossibleStolenCard: string;
|
|
150
|
+
processorDeclinedFraudSuspected: string;
|
|
151
|
+
transactionNotAllowed: string;
|
|
152
|
+
duplicateTransaction: string;
|
|
153
|
+
cardholderStoppedBilling: string;
|
|
154
|
+
cardholderStoppedAllBilling: string;
|
|
155
|
+
invalidTransaction: string;
|
|
156
|
+
violation: string;
|
|
157
|
+
securityViolation: string;
|
|
158
|
+
declinedUpdatedCardholderAvailable: string;
|
|
159
|
+
processorDoesNotSupportThisFeature: string;
|
|
160
|
+
cardTypeNotEnabled: string;
|
|
161
|
+
setUpErrorMerchant: string;
|
|
162
|
+
invalidMerchantId: string;
|
|
163
|
+
setUpErrorAmount: string;
|
|
164
|
+
setUpErrorHierarchy: string;
|
|
165
|
+
setUpErrorCard: string;
|
|
166
|
+
setUpErrorTerminal: string;
|
|
167
|
+
encryptionError: string;
|
|
168
|
+
surchargeNotPermitted: string;
|
|
169
|
+
inconsistentData: string;
|
|
170
|
+
noActionTaken: string;
|
|
171
|
+
partialApprovalForAmountInGroupIiiVersion: string;
|
|
172
|
+
authorizationCouldNotBeFound: string;
|
|
173
|
+
alreadyReversed: string;
|
|
174
|
+
processorDeclined: string;
|
|
175
|
+
invalidAuthorizationCode: string;
|
|
176
|
+
invalidStore: string;
|
|
177
|
+
declinedCallForApproval: string;
|
|
178
|
+
invalidClientId: string;
|
|
179
|
+
errorDoNotRetryCallIssuer: string;
|
|
180
|
+
declinedCallIssuer: string;
|
|
181
|
+
invalidMerchantNumber: string;
|
|
182
|
+
declined: string;
|
|
183
|
+
callIssuerPickUpCard: string;
|
|
184
|
+
invalidAmount: string;
|
|
185
|
+
invalidSkuNumber: string;
|
|
186
|
+
invalidCreditPlan: string;
|
|
187
|
+
creditCardNumberDoesNotMatchMethodOfPayment: string;
|
|
188
|
+
invalidLevelIiiPurchase: string;
|
|
189
|
+
cardReportedAsLostOrStolen: string;
|
|
190
|
+
reversalAmountDoesNotMatchAuthorizationAmount: string;
|
|
191
|
+
invalidTransactionDivisionNumber: string;
|
|
192
|
+
transactionAmountExceedsTheTransactionDivisionLimit: string;
|
|
193
|
+
issuerOrCardholderHasPutARestrictionOnTheCard: string;
|
|
194
|
+
merchantNotMastercardSecurecodeEnabled: string;
|
|
195
|
+
addressVerificationFailed: string;
|
|
196
|
+
addressVerificationAndCardSecurityCodeFailed: string;
|
|
197
|
+
invalidTransactionData: string;
|
|
198
|
+
invalidTaxAmount: string;
|
|
199
|
+
paypalBusinessAccountPreferenceResultedInTheTransactionFailing: string;
|
|
200
|
+
invalidCurrencyCode: string;
|
|
201
|
+
refundTimeLimitExceeded: string;
|
|
202
|
+
paypalBusinessAccountRestricted: string;
|
|
203
|
+
authorizationExpired: string;
|
|
204
|
+
paypalBusinessAccountLockedOrClosed: string;
|
|
205
|
+
paypalBlockingDuplicateOrderIds: string;
|
|
206
|
+
paypalBuyerRevokedPreApprovedPaymentAuthorization: string;
|
|
207
|
+
paypalPayeeAccountInvalidOrDoesNotHaveAConfirmedEmail: string;
|
|
208
|
+
paypalPayeeEmailIncorrectlyFormatted: string;
|
|
209
|
+
paypalValidationError: string;
|
|
210
|
+
fundingInstrumentInThePaypalAccountWasDeclinedByTheProcessorOrBankOrItCantBeUsedForThisPayment: string;
|
|
211
|
+
payerAccountIsLockedOrClosed: string;
|
|
212
|
+
payerCannotPayForThisTransactionWithPaypal: string;
|
|
213
|
+
transactionRefusedDueToPaypalRiskModel: string;
|
|
214
|
+
invalidSecurePaymentData: string;
|
|
215
|
+
paypalMerchantAccountConfigurationError: string;
|
|
216
|
+
invalidUserCredentials: string;
|
|
217
|
+
paypalPendingPaymentsAreNotSupported: string;
|
|
218
|
+
paypalDomesticTransactionRequired: string;
|
|
219
|
+
paypalPhoneNumberRequired: string;
|
|
220
|
+
paypalTaxInfoRequired: string;
|
|
221
|
+
paypalPayeeBlockedTransaction: string;
|
|
222
|
+
paypalTransactionLimitExceeded: string;
|
|
223
|
+
paypalReferenceTransactionsNotEnabledForYourAccount: string;
|
|
224
|
+
currencyNotEnabledForYourPaypalSellerAccount: string;
|
|
225
|
+
paypalPayeeEmailPermissionDeniedForThisRequest: string;
|
|
226
|
+
paypalOrVenmoAccountNotConfiguredToRefundMoreThanSettledAmount: string;
|
|
227
|
+
currencyOfThisTransactionMustMatchCurrencyOfYourPaypalAccount: string;
|
|
228
|
+
noDataFoundTryAnotherVerificationMethod: string;
|
|
229
|
+
paypalPaymentMethodIsInvalid: string;
|
|
230
|
+
paypalPaymentHasAlreadyBeenCompleted: string;
|
|
231
|
+
paypalRefundIsNotAllowedAfterPartialRefund: string;
|
|
232
|
+
paypalBuyerAccountCantBeTheSameAsTheSellerAccount: string;
|
|
233
|
+
paypalAuthorizationAmountLimitExceeded: string;
|
|
234
|
+
paypalAuthorizationCountLimitExceeded: string;
|
|
235
|
+
cardholderAuthenticationRequired: string;
|
|
236
|
+
paypalChannelInitiatedBillingNotEnabledForYourAccount: string;
|
|
237
|
+
additionalAuthorizationRequired: string;
|
|
238
|
+
incorrectPin: string;
|
|
239
|
+
pinTryExceeded: string;
|
|
240
|
+
offlineIssuerDeclined: string;
|
|
241
|
+
cannotAuthorizeAtThisTimeLifeCycle: string;
|
|
242
|
+
cannotAuthorizeAtThisTimePolicy: string;
|
|
243
|
+
cardNotActivated: string;
|
|
244
|
+
closedCard: string;
|
|
245
|
+
processorNetworkUnavailableTryAgain: string;
|
|
246
|
+
};
|
|
135
247
|
}
|
|
136
248
|
|
|
137
249
|
declare interface CheckoutTranslateState {
|
|
@@ -250,11 +362,11 @@ declare type Listener<TData> = (data: TData) => void;
|
|
|
250
362
|
export declare type Locale = 'ar' | 'en' | 'bg' | 'cs' | 'da' | 'de' | 'el' | 'es' | 'et' | 'fi' | 'fil' | 'fr' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lt' | 'lv' | 'ms' | 'ru' | 'mt' | 'nb' | 'no' | 'nl' | 'pl' | 'pt' | 'ro' | 'ua' | 'sk' | 'sl' | 'sv' | 'th' | 'tr' | 'vi' | 'zh';
|
|
251
363
|
|
|
252
364
|
declare enum PaymentMethod {
|
|
253
|
-
PAYPAL = "
|
|
254
|
-
APPLE_PAY = "
|
|
255
|
-
GOOGLE_PAY = "
|
|
256
|
-
CARD = "
|
|
257
|
-
VENMO = "
|
|
365
|
+
PAYPAL = "PAYPAL",
|
|
366
|
+
APPLE_PAY = "APPLEPAY",
|
|
367
|
+
GOOGLE_PAY = "GPAY",
|
|
368
|
+
CARD = "CARD",
|
|
369
|
+
VENMO = "VENMO"
|
|
258
370
|
}
|
|
259
371
|
|
|
260
372
|
export declare interface PaymentResult {
|
|
@@ -428,7 +540,6 @@ export declare interface PayNextConfig {
|
|
|
428
540
|
clientToken: string;
|
|
429
541
|
environment: TEnvironment;
|
|
430
542
|
apiVersion: string;
|
|
431
|
-
supportedCardTypes?: CardType[];
|
|
432
543
|
variant?: 'default' | 'compact';
|
|
433
544
|
styles?: StylesConfig;
|
|
434
545
|
translate?: DeepPartial<CheckoutTranslate>;
|