@tap-payments/apple-pay-button 1.0.13 → 1.0.14

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/README.md CHANGED
@@ -141,8 +141,8 @@ const App = () => {
141
141
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
142
142
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
143
143
  <title>apple pay button</title>
144
- <link rel="stylesheet" href="https://tap-sdks.b-cdn.net/apple-pay/build-1.0.13/main.css" />
145
- <script src="https://tap-sdks.b-cdn.net/apple-pay/build-1.0.13/main.js"></script>
144
+ <link rel="stylesheet" href="https://tap-sdks.b-cdn.net/apple-pay/build-1.0.14/main.css" />
145
+ <script src="https://tap-sdks.b-cdn.net/apple-pay/build-1.0.14/main.js"></script>
146
146
  </head>
147
147
 
148
148
  <body>
@@ -16,7 +16,7 @@ declare class APPService extends BaseService {
16
16
  merchant: any;
17
17
  payment_options: any;
18
18
  }>;
19
- appleSession(merchant: MerchantResponse, validationURL: string, merchantRegisteredDomain: string, merchantIdentifier: string): Promise<any>;
19
+ appleSession(merchant: MerchantResponse, validationURL: string, merchantRegisteredDomain: string): Promise<any>;
20
20
  tapTokenization(applePaymentData: Record<string, string>): Promise<any>;
21
21
  }
22
22
  declare const appService: APPService;
@@ -198,7 +198,7 @@ var APPService = (function (_super) {
198
198
  enumerable: false,
199
199
  configurable: true,
200
200
  writable: true,
201
- value: function (merchant, validationURL, merchantRegisteredDomain, merchantIdentifier) {
201
+ value: function (merchant, validationURL, merchantRegisteredDomain) {
202
202
  return __awaiter(this, void 0, void 0, function () {
203
203
  var body, data;
204
204
  return __generator(this, function (_a) {
@@ -207,7 +207,7 @@ var APPService = (function (_super) {
207
207
  body = {
208
208
  validationUrl: validationURL,
209
209
  origin: merchantRegisteredDomain,
210
- merchantIdentifier: merchantIdentifier,
210
+ merchantIdentifier: merchantRegisteredDomain,
211
211
  merchantId: merchant.id,
212
212
  merchantName: merchant.name
213
213
  };
@@ -176,7 +176,7 @@ export var useApplePay = function (_a) {
176
176
  if (debug) {
177
177
  console.info("creating merchant session for merchantData: ".concat(JSON.stringify(profileData.merchant), " and validationURL: ").concat(event.validationURL, " and merchant.domain: ").concat(merchant.domain));
178
178
  }
179
- return [4, appService.appleSession(__assign(__assign({}, profileData.merchant), { id: merchant.id }), event.validationURL, merchant.domain, merchant.id)];
179
+ return [4, appService.appleSession(__assign(__assign({}, profileData.merchant), { id: merchant.id }), event.validationURL, merchant.domain)];
180
180
  case 2:
181
181
  merchantSession = _a.sent();
182
182
  if (debug)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/apple-pay-button",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Apple Pay Button React Component",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",