@tap-payments/apple-pay-button 1.2.1 → 1.2.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.
@@ -32,16 +32,17 @@ export var getDefaultValues = function (mainObject) {
32
32
  };
33
33
  export var getMerchantCapaplities = function (supportedCards) {
34
34
  var merchantCapaplities = [MerchantCapabilities.Supports3DS];
35
- if (!supportedCards) {
35
+ var lowerCaseSupportedCards = supportedCards === null || supportedCards === void 0 ? void 0 : supportedCards.map(function (card) { return card.toLocaleLowerCase(); });
36
+ if (!lowerCaseSupportedCards) {
36
37
  merchantCapaplities = __spreadArray(__spreadArray([], merchantCapaplities, true), [
37
38
  MerchantCapabilities.SupportsCredit,
38
39
  MerchantCapabilities.SupportsDebit
39
40
  ], false);
40
41
  }
41
- else if (supportedCards.includes('CREDIT')) {
42
+ else if (lowerCaseSupportedCards.includes('credit')) {
42
43
  merchantCapaplities.push(MerchantCapabilities.SupportsCredit);
43
44
  }
44
- else if (supportedCards.includes('DEBIT')) {
45
+ else if (lowerCaseSupportedCards.includes('debit')) {
45
46
  merchantCapaplities.push(MerchantCapabilities.SupportsDebit);
46
47
  }
47
48
  return merchantCapaplities;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/apple-pay-button",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Apple Pay Button React Component",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",