@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.
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:
|
|
161
|
+
merchantIdentifier: merchantIdentifier,
|
|
162
162
|
merchantId: merchant.id,
|
|
163
163
|
merchantName: merchant.name
|
|
164
164
|
};
|
|
@@ -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)
|