@fat-zebra/sdk 1.5.0 → 1.5.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/.jest/setup-env-vars.js +1 -0
- package/README.dev.md +33 -0
- package/README.md +4 -1
- package/dist/click_to_pay/index.d.ts +4 -1
- package/dist/click_to_pay/index.js +13 -12
- package/dist/hpp/hpp.js +2 -0
- package/dist/local/fatzebra.css +91 -0
- package/dist/local/fatzebra.js +10771 -10047
- package/dist/local/fatzebra.js.map +1 -1
- package/dist/production/fatzebra.css +91 -0
- package/dist/production/fatzebra.js +2 -0
- package/dist/production/fatzebra.js.LICENSE.txt +1 -0
- package/dist/react/useFatZebra.js +1 -1
- package/dist/shared/util.d.ts +1 -1
- package/dist/shared/util.js +2 -2
- package/dist/staging/fatzebra.js +67 -615
- package/dist/staging/fatzebra.js.map +1 -1
- package/dist/validation/schemas/click-to-pay/payment-intent.json +1 -1
- package/dist/version.d.ts +1 -0
- package/dist/version.js +1 -0
- package/package.json +7 -6
- package/scripts/release-package.js +113 -0
- package/CHANGELOG.md +0 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
@@ -69,7 +69,7 @@ const useFatZebra = ({ config, handlers, cardToken }) => {
|
|
|
69
69
|
return () => {
|
|
70
70
|
window.removeEventListener("message", messageHandler);
|
|
71
71
|
};
|
|
72
|
-
}, []);
|
|
72
|
+
}, [paymentIntent]);
|
|
73
73
|
const payment = paymentIntent.payment;
|
|
74
74
|
const verifyUrl = generateVerifyURL(Object.assign({ token: cardToken, verification: paymentIntent.verification, merchant: username }, options), config.environment);
|
|
75
75
|
const paymentUrl = generatePaymentURL(Object.assign({ merchant: username, reference: payment.reference, amount: payment.amount, currency: payment.currency, hash: paymentIntent.verification }, options), config.environment);
|
package/dist/shared/util.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ declare const toCamelCase: (s: string) => string;
|
|
|
2
2
|
declare const toSnakeCase: (s: string) => string;
|
|
3
3
|
declare const toObjectWithSnakeCaseKeys: (o: any) => any;
|
|
4
4
|
declare const toObjectWithCamelCaseKeys: (o: any) => any;
|
|
5
|
-
declare const getSdkVersionNumber: () =>
|
|
5
|
+
declare const getSdkVersionNumber: () => string;
|
|
6
6
|
export { toCamelCase, toSnakeCase, toObjectWithCamelCaseKeys, toObjectWithSnakeCaseKeys, getSdkVersionNumber, };
|
package/dist/shared/util.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { version } from '../version';
|
|
2
2
|
const toCamelCase = (s) => {
|
|
3
3
|
return s.replace(/_([a-z])/g, (g) => g[1].toUpperCase());
|
|
4
4
|
};
|
|
@@ -77,6 +77,6 @@ const toObjectWithCamelCaseKeys = (o) => {
|
|
|
77
77
|
return converted;
|
|
78
78
|
};
|
|
79
79
|
const getSdkVersionNumber = () => {
|
|
80
|
-
return
|
|
80
|
+
return version;
|
|
81
81
|
};
|
|
82
82
|
export { toCamelCase, toSnakeCase, toObjectWithCamelCaseKeys, toObjectWithSnakeCaseKeys, getSdkVersionNumber, };
|