redsys-easy 5.3.0 → 5.3.2
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.
|
@@ -61,6 +61,14 @@ export interface BaseInputParams {
|
|
|
61
61
|
DS_MERCHANT_COF_TXNID?: string | undefined;
|
|
62
62
|
/** Credential On File transaction type */
|
|
63
63
|
DS_MERCHANT_COF_TYPE?: 'I' | 'R' | 'H' | 'E' | 'D' | 'M' | 'N' | 'C' | undefined;
|
|
64
|
+
/** xPay data in base64 format, mutually exclusive with DS_XPAYDECODEDDATA */
|
|
65
|
+
DS_XPAYDATA?: string | undefined;
|
|
66
|
+
/** xPay data in json format, mutually exclusive with DS_XPAYDATA */
|
|
67
|
+
DS_XPAYDECODEDDATA?: Record<string, unknown> | undefined;
|
|
68
|
+
/** xPay origin */
|
|
69
|
+
DS_XPAYORIGEN?: 'WEB' | 'InApp' | undefined;
|
|
70
|
+
/** xPay type */
|
|
71
|
+
DS_XPAYTYPE?: 'Google' | 'Apple' | undefined;
|
|
64
72
|
}
|
|
65
73
|
/**
|
|
66
74
|
* Input parameters for a redsys redirect request
|
|
@@ -91,12 +99,6 @@ export interface RedirectInputParams extends BaseInputParams {
|
|
|
91
99
|
* @public
|
|
92
100
|
*/
|
|
93
101
|
export interface RequestInputParams extends BaseInputParams, Pick<RedirectInputParams, 'DS_MERCHANT_MERCHANTURL' | 'DS_MERCHANT_URLOK' | 'DS_MERCHANT_URLKO' | 'DS_MERCHANT_CONSUMERLANGUAGE' | 'DS_MERCHANT_PAYMETHODS' | 'DS_MERCHANT_PERSOCODE' | 'DS_MERCHANT_SHIPPINGADDRESSPYP'> {
|
|
94
|
-
/** xPay data, hex */
|
|
95
|
-
DS_XPAYDATA?: string | undefined;
|
|
96
|
-
/** xPay origin */
|
|
97
|
-
DS_XPAYORIGEN?: 'Google' | 'Apple' | undefined;
|
|
98
|
-
/** xPay type */
|
|
99
|
-
DS_XPAYTYPE?: 'WEB' | 'InApp' | undefined;
|
|
100
102
|
/** PUC identifier, number */
|
|
101
103
|
DS_ACQUIRER_IDENTIFIER?: string | undefined;
|
|
102
104
|
/** Matching data */
|
|
@@ -28,6 +28,8 @@ export interface BaseOutputParams {
|
|
|
28
28
|
Ds_MerchantData?: string;
|
|
29
29
|
/** Card brand */
|
|
30
30
|
Ds_Card_Brand?: CardBrandNum;
|
|
31
|
+
/** Card typology */
|
|
32
|
+
Ds_Card_Typology?: string | undefined;
|
|
31
33
|
/** Card is under PSD2 */
|
|
32
34
|
Ds_Card_PSD2?: 'Y' | 'N';
|
|
33
35
|
/**
|
|
@@ -54,6 +56,8 @@ export interface BaseOutputParams {
|
|
|
54
56
|
Ds_ExpiryDate?: string;
|
|
55
57
|
/** Stored payment method reference number */
|
|
56
58
|
Ds_Merchant_Identifier?: string;
|
|
59
|
+
/** Electronic Commerce Indicator */
|
|
60
|
+
Ds_ECI?: string | undefined;
|
|
57
61
|
}
|
|
58
62
|
/**
|
|
59
63
|
* Common output parameters of resolved requests or notifications
|
|
@@ -70,6 +74,10 @@ export interface ResolvedTransactionTrait {
|
|
|
70
74
|
Ds_Currency: CurrencyNum;
|
|
71
75
|
/** Response code */
|
|
72
76
|
Ds_Response: string;
|
|
77
|
+
/** Response description */
|
|
78
|
+
Ds_Response_Description?: string | undefined;
|
|
79
|
+
/** Response subcode indicating motive, it appears in denials with code 190 */
|
|
80
|
+
Ds_ResponseInt?: string | undefined;
|
|
73
81
|
}
|
|
74
82
|
/**
|
|
75
83
|
* Common output parameters of a all requests
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redsys-easy",
|
|
3
3
|
"description": "Node JS interface for Redsys payment gateway",
|
|
4
|
-
"version": "5.3.
|
|
4
|
+
"version": "5.3.2",
|
|
5
5
|
"author": "Javier Garcia <javiertury@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"koa-bodyparser": "^4.4.1",
|
|
70
70
|
"lint-staged": "^15.3.0",
|
|
71
71
|
"markdown-magic": "^4.0.4",
|
|
72
|
-
"rimraf": "^6.1.
|
|
72
|
+
"rimraf": "^6.1.2",
|
|
73
73
|
"rollup": "^3.29.5",
|
|
74
74
|
"rollup-plugin-typescript2": "^0.35.0",
|
|
75
75
|
"simple-git-hooks": "^2.9.0",
|