@tap-payments/apple-pay-button 0.0.67-development → 0.0.69-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.
@@ -60,6 +60,7 @@ export interface ApplePayButtonProps {
60
60
  };
61
61
  merchant: {
62
62
  id: string;
63
+ identifier?: string;
63
64
  };
64
65
  scope: Scope;
65
66
  interface?: Interface;
package/build/api.d.ts CHANGED
@@ -25,7 +25,7 @@ declare class APPService {
25
25
  merchant: any;
26
26
  payment_options: any;
27
27
  }>;
28
- appleSession(merchant: Pick<MerchantResponse, 'name' | 'id'>, validationURL: string, merchantRegisteredDomain: string): Promise<any>;
28
+ appleSession(merchant: Pick<MerchantResponse, 'name' | 'id'>, validationURL: string, merchantRegisteredDomain: string, merchantIdentifier: string): Promise<any>;
29
29
  tapTokenization(applePaymentData: Record<string, string>): Promise<any>;
30
30
  createCharge(request: ChargeRequestBody): Promise<any>;
31
31
  createAuthorize(request: AuthorizeRequestBody): Promise<any>;
package/build/api.js CHANGED
@@ -149,7 +149,7 @@ var APPService = (function () {
149
149
  enumerable: false,
150
150
  configurable: true,
151
151
  writable: true,
152
- value: function (merchant, validationURL, merchantRegisteredDomain) {
152
+ value: function (merchant, validationURL, merchantRegisteredDomain, merchantIdentifier) {
153
153
  return __awaiter(this, void 0, void 0, function () {
154
154
  var body, data;
155
155
  return __generator(this, function (_a) {
@@ -158,7 +158,7 @@ var APPService = (function () {
158
158
  body = {
159
159
  validationUrl: validationURL,
160
160
  origin: merchantRegisteredDomain,
161
- merchantIdentifier: merchantRegisteredDomain,
161
+ merchantIdentifier: merchantIdentifier,
162
162
  merchantId: merchant.id,
163
163
  merchantName: merchant.name
164
164
  };
@@ -24,6 +24,7 @@ export declare const useApplePay: ({ buttonProps }: UsaApplePayProps) => {
24
24
  };
25
25
  merchant: {
26
26
  id: string;
27
+ identifier?: string | undefined;
27
28
  };
28
29
  scope: Scope;
29
30
  customer?: import("../@types").Customer | undefined;
@@ -218,7 +218,7 @@ export var useApplePay = function (_a) {
218
218
  if (debug) {
219
219
  console.info("creating merchant session for merchantData: ".concat(JSON.stringify(profileData.merchant), " and validationURL: ").concat(event.validationURL, " and merchant.domain: ").concat(window.location.hostname));
220
220
  }
221
- return [4, appService.appleSession(__assign(__assign({}, profileData.merchant), { id: merchant.id || profileData.merchant.id }), event.validationURL, window.location.hostname)];
221
+ return [4, appService.appleSession(__assign(__assign({}, profileData.merchant), { id: merchant.id || profileData.merchant.id }), event.validationURL, window.location.hostname, merchant.identifier || merchant.id || profileData.merchant.id)];
222
222
  case 2:
223
223
  merchantSession = _a.sent();
224
224
  if (debug)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/apple-pay-button",
3
- "version": "0.0.67-development",
3
+ "version": "0.0.69-development",
4
4
  "description": "Apple Pay Button React Component",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",