@tap-payments/apple-pay-button 0.0.76-development → 0.0.77-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.
@@ -92,7 +92,7 @@ export var useApplePay = function (_a) {
92
92
  return getApplePayPaymentMethod(profileData.payment_options.payment_methods || []);
93
93
  }, [profileData]);
94
94
  var initialize = function (metaData) { return __awaiter(void 0, void 0, void 0, function () {
95
- var merchantProfile, payment_options, headers_1, data, err_1;
95
+ var headers_1, data, err_1;
96
96
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
97
97
  return __generator(this, function (_o) {
98
98
  switch (_o.label) {
@@ -105,9 +105,10 @@ export var useApplePay = function (_a) {
105
105
  throw new Error('The device/customer is not eligible to use ApplePay');
106
106
  }
107
107
  if (metaData) {
108
- merchantProfile = metaData.merchant, payment_options = metaData.payment_options, headers_1 = metaData.headers;
108
+ headers_1 = metaData.headers;
109
109
  setAxiosGlobalHeaders(__assign({}, headers_1));
110
- setProfile({ merchant: merchantProfile, payment_options: payment_options });
110
+ setProfile(metaData);
111
+ setApplePayRequestData(prepareApplePayRequest(__assign(__assign({}, metaData), { order: order, acceptance: acceptance, customer: customer })));
111
112
  setInitialLoading(false);
112
113
  return [2];
113
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/apple-pay-button",
3
- "version": "0.0.76-development",
3
+ "version": "0.0.77-development",
4
4
  "description": "Apple Pay Button React Component",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",