@tap-payments/apple-pay-button 1.0.12 → 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.
|
|
145
|
-
<script src="https://tap-sdks.b-cdn.net/apple-pay/build-1.0.
|
|
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
|
|
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;
|
package/build/api/app.service.js
CHANGED
|
@@ -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
|
|
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:
|
|
210
|
+
merchantIdentifier: merchantRegisteredDomain,
|
|
211
211
|
merchantId: merchant.id,
|
|
212
212
|
merchantName: merchant.name
|
|
213
213
|
};
|
|
@@ -87,7 +87,7 @@ export var useApplePay = function (_a) {
|
|
|
87
87
|
total_amount: Number(transaction.amount),
|
|
88
88
|
order: __assign(__assign({ amount: Number(transaction.amount), currency: transaction.currency }, (customer && {
|
|
89
89
|
customer: {
|
|
90
|
-
id:
|
|
90
|
+
id: customer.id,
|
|
91
91
|
email: (_a = customer.contact) === null || _a === void 0 ? void 0 : _a.email,
|
|
92
92
|
first_name: ((_b = customer.name) === null || _b === void 0 ? void 0 : _b.length) ? customer.name[0].first : '',
|
|
93
93
|
last_name: ((_c = customer.name) === null || _c === void 0 ? void 0 : _c.length) ? customer.name[0].last : '',
|
|
@@ -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
|
|
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)
|