@voxepay/checkout 0.3.0 → 0.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.
- package/dist/index.cjs.js +320 -28072
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +320 -28072
- package/dist/index.esm.js.map +1 -1
- package/dist/utils/encryption.d.ts +6 -0
- package/dist/voxepay-checkout.min.js +1 -1
- package/dist/voxepay-checkout.min.js.map +1 -1
- package/package.json +2 -5
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure JavaScript RSA Encryption for card data
|
|
3
|
+
* No Node.js crypto dependency — works directly in the browser
|
|
4
|
+
*/
|
|
1
5
|
export interface AuthDataParams {
|
|
2
6
|
version: string;
|
|
3
7
|
pan: string;
|
|
@@ -7,6 +11,8 @@ export interface AuthDataParams {
|
|
|
7
11
|
}
|
|
8
12
|
/**
|
|
9
13
|
* Generates encrypted auth data for card payment
|
|
14
|
+
* Uses pure JavaScript RSA — no Node.js crypto dependency
|
|
15
|
+
*
|
|
10
16
|
* @param params - Card details for encryption
|
|
11
17
|
* @returns Base64 encoded encrypted auth data
|
|
12
18
|
*/
|