@fat-zebra/sdk 1.5.8-beta.2 → 1.5.8-beta.3

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.
@@ -140,13 +140,12 @@ export class ApplePay {
140
140
  };
141
141
  emit(FatZebra.PublicEvent.PAYMENT_SUCCESS, payload);
142
142
  const message = {
143
- channel,
144
143
  subject: 'Payment successful.',
145
144
  data: {
146
145
  payload
147
146
  }
148
147
  };
149
- this.postMessageClient.send(message);
148
+ window.parent.postMessage(message, "*");
150
149
  }
151
150
  else {
152
151
  this.applePaySession.completePayment(window.ApplePaySession.STATUS_FAILURE);
@@ -157,13 +156,12 @@ export class ApplePay {
157
156
  console.log('its successful apple pay', result);
158
157
  emit(FatZebra.PublicEvent.PAYMENT_ERROR, payload);
159
158
  const message = {
160
- channel,
161
159
  subject: 'Payment unsuccessful.',
162
160
  data: {
163
161
  payload
164
162
  }
165
163
  };
166
- this.postMessageClient.send(message);
164
+ window.parent.postMessage(message, "*");
167
165
  }
168
166
  }
169
167
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fat-zebra/sdk",
3
- "version": "1.5.8-beta.2",
3
+ "version": "1.5.8-beta.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {