@tap-payments/apple-pay-button 0.0.51-development → 0.0.52-development
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/build/utils/config.js +1 -2
- package/package.json +1 -1
package/build/utils/config.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSEncrypt } from 'jsencrypt';
|
|
2
2
|
export var validateSupportedNetworks = function (supportedNetworksOptions, merchantSupportedNetworks) {
|
|
3
|
-
console.log('supportedNetworksOptions', supportedNetworksOptions, 'merchantSupportedNetworks', merchantSupportedNetworks);
|
|
4
3
|
var toLowerCase = function (item) { return item.toLowerCase(); };
|
|
5
4
|
if (!supportedNetworksOptions)
|
|
6
5
|
throw new Error("There is no supported networks available in your acceptance object");
|
|
@@ -31,7 +30,7 @@ export var getApplePayRequest = function (_a) {
|
|
|
31
30
|
familyName: ((_j = customer.name) === null || _j === void 0 ? void 0 : _j.length) ? (_k = customer.name[0]) === null || _k === void 0 ? void 0 : _k.last : ''
|
|
32
31
|
},
|
|
33
32
|
total: {
|
|
34
|
-
amount: Number(order.amount.toFixed(2)),
|
|
33
|
+
amount: Number(Number(order.amount).toFixed(2)),
|
|
35
34
|
label: name
|
|
36
35
|
}
|
|
37
36
|
};
|