@tap-payments/apple-pay-button 0.0.8-test → 1.0.1

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
@@ -103,8 +103,8 @@ const App = () => {
103
103
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
104
104
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
105
105
  <title>apple pay button</title>
106
- <link rel="stylesheet" href="https://apple-pay-button.b-cdn.net/build-0.0.8-test/main.css" />
107
- <script src="https://apple-pay-button.b-cdn.net/build-0.0.8-test/main.js"></script>
106
+ <link rel="stylesheet" href="https://apple-pay-button.b-cdn.net/build-1.0.1/main.css" />
107
+ <script src="https://apple-pay-button.b-cdn.net/build-1.0.1/main.js"></script>
108
108
  </head>
109
109
  <body>
110
110
  <div id="apple-pay-button"></div>
@@ -97,26 +97,20 @@ export var useApplePay = function (_a) {
97
97
  supportedNetworks: cardBrands,
98
98
  name: profileData.merchant.name
99
99
  });
100
- console.info("Creating ApplePaySession with version: ".concat(ApplePayVersion, " and request: ").concat(JSON.stringify(request)));
101
100
  session_1 = new ApplePaySession(ApplePayVersion, request);
102
101
  session_1.onvalidatemerchant = function (event) { return __awaiter(void 0, void 0, void 0, function () {
103
102
  var merchantSession, error_1;
104
103
  return __generator(this, function (_a) {
105
104
  switch (_a.label) {
106
105
  case 0:
107
- console.info('Creating merchant session and validating merchant session');
108
- console.info('onvalidatemerchant event', event);
109
106
  setLoading(true);
110
107
  _a.label = 1;
111
108
  case 1:
112
109
  _a.trys.push([1, 3, , 4]);
113
- console.info("creating merchant session for merchantData: ".concat(JSON.stringify(profileData.merchant), " and validationURL: ").concat(event.validationURL, " and merchant.domain: ").concat(merchant.domain));
114
110
  return [4, appService.appleSession(profileData.merchant, event.validationURL, merchant.domain)];
115
111
  case 2:
116
112
  merchantSession = (_a.sent()).body;
117
- console.info('merchantSession', merchantSession);
118
113
  session_1.completeMerchantValidation(merchantSession);
119
- console.info('merchantSession completed successfully!');
120
114
  return [3, 4];
121
115
  case 3:
122
116
  error_1 = _a.sent();
@@ -135,7 +129,6 @@ export var useApplePay = function (_a) {
135
129
  switch (_b.label) {
136
130
  case 0:
137
131
  setLoading(true);
138
- console.info('onpaymentauthorized event', event);
139
132
  _b.label = 1;
140
133
  case 1:
141
134
  _b.trys.push([1, 9, , 10]);
@@ -160,7 +153,6 @@ export var useApplePay = function (_a) {
160
153
  return [3, 8];
161
154
  case 7:
162
155
  console.error('We only support AppleToken and TapToken for now');
163
- console.info('Completing payment with status: STATUS_FAILURE');
164
156
  session_1.completePayment({ status: ApplePaySession.STATUS_FAILURE });
165
157
  _b.label = 8;
166
158
  case 8: return [3, 10];
@@ -176,7 +168,6 @@ export var useApplePay = function (_a) {
176
168
  });
177
169
  }); };
178
170
  session_1.oncancel = function (event) {
179
- console.info('oncancel event', event);
180
171
  if (onCancel)
181
172
  onCancel();
182
173
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/apple-pay-button",
3
- "version": "0.0.8-test",
3
+ "version": "1.0.1",
4
4
  "description": "Apple Pay Button React Component",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",