@paystack/checkout-js 1.57.0-beta.5 → 1.57.0-beta.7

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/dist/checkout.js CHANGED
@@ -1038,7 +1038,7 @@ var Paystack = (function (exports) {
1038
1038
  };
1039
1039
 
1040
1040
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
1041
- var global$T =
1041
+ var global$U =
1042
1042
  // eslint-disable-next-line es/no-global-this -- safe
1043
1043
  check(typeof globalThis == 'object' && globalThis) ||
1044
1044
  check(typeof window == 'object' && window) ||
@@ -1050,7 +1050,7 @@ var Paystack = (function (exports) {
1050
1050
 
1051
1051
  var objectGetOwnPropertyDescriptor = {};
1052
1052
 
1053
- var fails$v = function (exec) {
1053
+ var fails$x = function (exec) {
1054
1054
  try {
1055
1055
  return !!exec();
1056
1056
  } catch (error) {
@@ -1058,17 +1058,17 @@ var Paystack = (function (exports) {
1058
1058
  }
1059
1059
  };
1060
1060
 
1061
- var fails$u = fails$v;
1061
+ var fails$w = fails$x;
1062
1062
 
1063
1063
  // Detect IE8's incomplete defineProperty implementation
1064
- var descriptors$1 = !fails$u(function () {
1064
+ var descriptors$1 = !fails$w(function () {
1065
1065
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1066
1066
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
1067
1067
  });
1068
1068
 
1069
- var fails$t = fails$v;
1069
+ var fails$v = fails$x;
1070
1070
 
1071
- var functionBindNative = !fails$t(function () {
1071
+ var functionBindNative = !fails$v(function () {
1072
1072
  var test = (function () { /* empty */ }).bind();
1073
1073
  // eslint-disable-next-line no-prototype-builtins -- safe
1074
1074
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -1112,35 +1112,35 @@ var Paystack = (function (exports) {
1112
1112
  var FunctionPrototype$3 = Function.prototype;
1113
1113
  var bind$c = FunctionPrototype$3.bind;
1114
1114
  var call$e = FunctionPrototype$3.call;
1115
- var uncurryThis$x = NATIVE_BIND$2 && bind$c.bind(call$e, call$e);
1115
+ var uncurryThis$z = NATIVE_BIND$2 && bind$c.bind(call$e, call$e);
1116
1116
 
1117
1117
  var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
1118
- return fn && uncurryThis$x(fn);
1118
+ return fn && uncurryThis$z(fn);
1119
1119
  } : function (fn) {
1120
1120
  return fn && function () {
1121
1121
  return call$e.apply(fn, arguments);
1122
1122
  };
1123
1123
  };
1124
1124
 
1125
- var uncurryThis$w = functionUncurryThis;
1125
+ var uncurryThis$y = functionUncurryThis;
1126
1126
 
1127
- var toString$b = uncurryThis$w({}.toString);
1128
- var stringSlice$4 = uncurryThis$w(''.slice);
1127
+ var toString$b = uncurryThis$y({}.toString);
1128
+ var stringSlice$4 = uncurryThis$y(''.slice);
1129
1129
 
1130
1130
  var classofRaw$1 = function (it) {
1131
1131
  return stringSlice$4(toString$b(it), 8, -1);
1132
1132
  };
1133
1133
 
1134
- var global$S = global$T;
1135
- var uncurryThis$v = functionUncurryThis;
1136
- var fails$s = fails$v;
1134
+ var global$T = global$U;
1135
+ var uncurryThis$x = functionUncurryThis;
1136
+ var fails$u = fails$x;
1137
1137
  var classof$a = classofRaw$1;
1138
1138
 
1139
- var Object$5 = global$S.Object;
1140
- var split$4 = uncurryThis$v(''.split);
1139
+ var Object$5 = global$T.Object;
1140
+ var split$4 = uncurryThis$x(''.split);
1141
1141
 
1142
1142
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
1143
- var indexedObject = fails$s(function () {
1143
+ var indexedObject = fails$u(function () {
1144
1144
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
1145
1145
  // eslint-disable-next-line no-prototype-builtins -- safe
1146
1146
  return !Object$5('z').propertyIsEnumerable(0);
@@ -1148,9 +1148,9 @@ var Paystack = (function (exports) {
1148
1148
  return classof$a(it) == 'String' ? split$4(it, '') : Object$5(it);
1149
1149
  } : Object$5;
1150
1150
 
1151
- var global$R = global$T;
1151
+ var global$S = global$U;
1152
1152
 
1153
- var TypeError$j = global$R.TypeError;
1153
+ var TypeError$j = global$S.TypeError;
1154
1154
 
1155
1155
  // `RequireObjectCoercible` abstract operation
1156
1156
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
@@ -1169,40 +1169,40 @@ var Paystack = (function (exports) {
1169
1169
 
1170
1170
  // `IsCallable` abstract operation
1171
1171
  // https://tc39.es/ecma262/#sec-iscallable
1172
- var isCallable$k = function (argument) {
1172
+ var isCallable$l = function (argument) {
1173
1173
  return typeof argument == 'function';
1174
1174
  };
1175
1175
 
1176
- var isCallable$j = isCallable$k;
1176
+ var isCallable$k = isCallable$l;
1177
1177
 
1178
- var isObject$h = function (it) {
1179
- return typeof it == 'object' ? it !== null : isCallable$j(it);
1178
+ var isObject$k = function (it) {
1179
+ return typeof it == 'object' ? it !== null : isCallable$k(it);
1180
1180
  };
1181
1181
 
1182
- var global$Q = global$T;
1183
- var isCallable$i = isCallable$k;
1182
+ var global$R = global$U;
1183
+ var isCallable$j = isCallable$l;
1184
1184
 
1185
1185
  var aFunction = function (argument) {
1186
- return isCallable$i(argument) ? argument : undefined;
1186
+ return isCallable$j(argument) ? argument : undefined;
1187
1187
  };
1188
1188
 
1189
1189
  var getBuiltIn$a = function (namespace, method) {
1190
- return arguments.length < 2 ? aFunction(global$Q[namespace]) : global$Q[namespace] && global$Q[namespace][method];
1190
+ return arguments.length < 2 ? aFunction(global$R[namespace]) : global$R[namespace] && global$R[namespace][method];
1191
1191
  };
1192
1192
 
1193
- var uncurryThis$u = functionUncurryThis;
1193
+ var uncurryThis$w = functionUncurryThis;
1194
1194
 
1195
- var objectIsPrototypeOf = uncurryThis$u({}.isPrototypeOf);
1195
+ var objectIsPrototypeOf = uncurryThis$w({}.isPrototypeOf);
1196
1196
 
1197
1197
  var getBuiltIn$9 = getBuiltIn$a;
1198
1198
 
1199
1199
  var engineUserAgent = getBuiltIn$9('navigator', 'userAgent') || '';
1200
1200
 
1201
- var global$P = global$T;
1201
+ var global$Q = global$U;
1202
1202
  var userAgent$5 = engineUserAgent;
1203
1203
 
1204
- var process$4 = global$P.process;
1205
- var Deno = global$P.Deno;
1204
+ var process$4 = global$Q.process;
1205
+ var Deno = global$Q.Deno;
1206
1206
  var versions = process$4 && process$4.versions || Deno && Deno.version;
1207
1207
  var v8 = versions && versions.v8;
1208
1208
  var match, version;
@@ -1229,10 +1229,10 @@ var Paystack = (function (exports) {
1229
1229
  /* eslint-disable es/no-symbol -- required for testing */
1230
1230
 
1231
1231
  var V8_VERSION$3 = engineV8Version;
1232
- var fails$r = fails$v;
1232
+ var fails$t = fails$x;
1233
1233
 
1234
1234
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1235
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$r(function () {
1235
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$t(function () {
1236
1236
  var symbol = Symbol();
1237
1237
  // Chrome 38 Symbol has incorrect toString conversion
1238
1238
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -1249,24 +1249,24 @@ var Paystack = (function (exports) {
1249
1249
  && !Symbol.sham
1250
1250
  && typeof Symbol.iterator == 'symbol';
1251
1251
 
1252
- var global$O = global$T;
1252
+ var global$P = global$U;
1253
1253
  var getBuiltIn$8 = getBuiltIn$a;
1254
- var isCallable$h = isCallable$k;
1254
+ var isCallable$i = isCallable$l;
1255
1255
  var isPrototypeOf$5 = objectIsPrototypeOf;
1256
1256
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
1257
1257
 
1258
- var Object$4 = global$O.Object;
1258
+ var Object$4 = global$P.Object;
1259
1259
 
1260
1260
  var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
1261
1261
  return typeof it == 'symbol';
1262
1262
  } : function (it) {
1263
1263
  var $Symbol = getBuiltIn$8('Symbol');
1264
- return isCallable$h($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$4(it));
1264
+ return isCallable$i($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$4(it));
1265
1265
  };
1266
1266
 
1267
- var global$N = global$T;
1267
+ var global$O = global$U;
1268
1268
 
1269
- var String$5 = global$N.String;
1269
+ var String$5 = global$O.String;
1270
1270
 
1271
1271
  var tryToString$4 = function (argument) {
1272
1272
  try {
@@ -1276,15 +1276,15 @@ var Paystack = (function (exports) {
1276
1276
  }
1277
1277
  };
1278
1278
 
1279
- var global$M = global$T;
1280
- var isCallable$g = isCallable$k;
1279
+ var global$N = global$U;
1280
+ var isCallable$h = isCallable$l;
1281
1281
  var tryToString$3 = tryToString$4;
1282
1282
 
1283
- var TypeError$i = global$M.TypeError;
1283
+ var TypeError$i = global$N.TypeError;
1284
1284
 
1285
1285
  // `Assert: IsCallable(argument) is true`
1286
1286
  var aCallable$7 = function (argument) {
1287
- if (isCallable$g(argument)) return argument;
1287
+ if (isCallable$h(argument)) return argument;
1288
1288
  throw TypeError$i(tryToString$3(argument) + ' is not a function');
1289
1289
  };
1290
1290
 
@@ -1297,20 +1297,20 @@ var Paystack = (function (exports) {
1297
1297
  return func == null ? undefined : aCallable$6(func);
1298
1298
  };
1299
1299
 
1300
- var global$L = global$T;
1300
+ var global$M = global$U;
1301
1301
  var call$d = functionCall;
1302
- var isCallable$f = isCallable$k;
1303
- var isObject$g = isObject$h;
1302
+ var isCallable$g = isCallable$l;
1303
+ var isObject$j = isObject$k;
1304
1304
 
1305
- var TypeError$h = global$L.TypeError;
1305
+ var TypeError$h = global$M.TypeError;
1306
1306
 
1307
1307
  // `OrdinaryToPrimitive` abstract operation
1308
1308
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
1309
1309
  var ordinaryToPrimitive$1 = function (input, pref) {
1310
1310
  var fn, val;
1311
- if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$g(val = call$d(fn, input))) return val;
1312
- if (isCallable$f(fn = input.valueOf) && !isObject$g(val = call$d(fn, input))) return val;
1313
- if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$g(val = call$d(fn, input))) return val;
1311
+ if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$j(val = call$d(fn, input))) return val;
1312
+ if (isCallable$g(fn = input.valueOf) && !isObject$j(val = call$d(fn, input))) return val;
1313
+ if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$j(val = call$d(fn, input))) return val;
1314
1314
  throw TypeError$h("Can't convert object to primitive value");
1315
1315
  };
1316
1316
 
@@ -1318,24 +1318,24 @@ var Paystack = (function (exports) {
1318
1318
 
1319
1319
  var isPure = false;
1320
1320
 
1321
- var global$K = global$T;
1321
+ var global$L = global$U;
1322
1322
 
1323
1323
  // eslint-disable-next-line es/no-object-defineproperty -- safe
1324
1324
  var defineProperty$6 = Object.defineProperty;
1325
1325
 
1326
1326
  var setGlobal$3 = function (key, value) {
1327
1327
  try {
1328
- defineProperty$6(global$K, key, { value: value, configurable: true, writable: true });
1328
+ defineProperty$6(global$L, key, { value: value, configurable: true, writable: true });
1329
1329
  } catch (error) {
1330
- global$K[key] = value;
1330
+ global$L[key] = value;
1331
1331
  } return value;
1332
1332
  };
1333
1333
 
1334
- var global$J = global$T;
1334
+ var global$K = global$U;
1335
1335
  var setGlobal$2 = setGlobal$3;
1336
1336
 
1337
1337
  var SHARED = '__core-js_shared__';
1338
- var store$3 = global$J[SHARED] || setGlobal$2(SHARED, {});
1338
+ var store$3 = global$K[SHARED] || setGlobal$2(SHARED, {});
1339
1339
 
1340
1340
  var sharedStore = store$3;
1341
1341
 
@@ -1351,10 +1351,10 @@ var Paystack = (function (exports) {
1351
1351
  source: 'https://github.com/zloirock/core-js'
1352
1352
  });
1353
1353
 
1354
- var global$I = global$T;
1354
+ var global$J = global$U;
1355
1355
  var requireObjectCoercible$2 = requireObjectCoercible$4;
1356
1356
 
1357
- var Object$3 = global$I.Object;
1357
+ var Object$3 = global$J.Object;
1358
1358
 
1359
1359
  // `ToObject` abstract operation
1360
1360
  // https://tc39.es/ecma262/#sec-toobject
@@ -1362,10 +1362,10 @@ var Paystack = (function (exports) {
1362
1362
  return Object$3(requireObjectCoercible$2(argument));
1363
1363
  };
1364
1364
 
1365
- var uncurryThis$t = functionUncurryThis;
1365
+ var uncurryThis$v = functionUncurryThis;
1366
1366
  var toObject$8 = toObject$9;
1367
1367
 
1368
- var hasOwnProperty$1 = uncurryThis$t({}.hasOwnProperty);
1368
+ var hasOwnProperty$1 = uncurryThis$v({}.hasOwnProperty);
1369
1369
 
1370
1370
  // `HasOwnProperty` abstract operation
1371
1371
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -1373,32 +1373,32 @@ var Paystack = (function (exports) {
1373
1373
  return hasOwnProperty$1(toObject$8(it), key);
1374
1374
  };
1375
1375
 
1376
- var uncurryThis$s = functionUncurryThis;
1376
+ var uncurryThis$u = functionUncurryThis;
1377
1377
 
1378
- var id$1 = 0;
1378
+ var id$2 = 0;
1379
1379
  var postfix = Math.random();
1380
- var toString$a = uncurryThis$s(1.0.toString);
1380
+ var toString$a = uncurryThis$u(1.0.toString);
1381
1381
 
1382
1382
  var uid$3 = function (key) {
1383
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id$1 + postfix, 36);
1383
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id$2 + postfix, 36);
1384
1384
  };
1385
1385
 
1386
- var global$H = global$T;
1386
+ var global$I = global$U;
1387
1387
  var shared$3 = shared$4.exports;
1388
- var hasOwn$e = hasOwnProperty_1;
1388
+ var hasOwn$f = hasOwnProperty_1;
1389
1389
  var uid$2 = uid$3;
1390
1390
  var NATIVE_SYMBOL = nativeSymbol;
1391
1391
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
1392
1392
 
1393
1393
  var WellKnownSymbolsStore = shared$3('wks');
1394
- var Symbol$2 = global$H.Symbol;
1394
+ var Symbol$2 = global$I.Symbol;
1395
1395
  var symbolFor = Symbol$2 && Symbol$2['for'];
1396
1396
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$2;
1397
1397
 
1398
1398
  var wellKnownSymbol$j = function (name) {
1399
- if (!hasOwn$e(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
1399
+ if (!hasOwn$f(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
1400
1400
  var description = 'Symbol.' + name;
1401
- if (NATIVE_SYMBOL && hasOwn$e(Symbol$2, name)) {
1401
+ if (NATIVE_SYMBOL && hasOwn$f(Symbol$2, name)) {
1402
1402
  WellKnownSymbolsStore[name] = Symbol$2[name];
1403
1403
  } else if (USE_SYMBOL_AS_UID && symbolFor) {
1404
1404
  WellKnownSymbolsStore[name] = symbolFor(description);
@@ -1408,27 +1408,27 @@ var Paystack = (function (exports) {
1408
1408
  } return WellKnownSymbolsStore[name];
1409
1409
  };
1410
1410
 
1411
- var global$G = global$T;
1411
+ var global$H = global$U;
1412
1412
  var call$c = functionCall;
1413
- var isObject$f = isObject$h;
1413
+ var isObject$i = isObject$k;
1414
1414
  var isSymbol$2 = isSymbol$3;
1415
1415
  var getMethod$2 = getMethod$3;
1416
1416
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
1417
1417
  var wellKnownSymbol$i = wellKnownSymbol$j;
1418
1418
 
1419
- var TypeError$g = global$G.TypeError;
1419
+ var TypeError$g = global$H.TypeError;
1420
1420
  var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
1421
1421
 
1422
1422
  // `ToPrimitive` abstract operation
1423
1423
  // https://tc39.es/ecma262/#sec-toprimitive
1424
1424
  var toPrimitive$2 = function (input, pref) {
1425
- if (!isObject$f(input) || isSymbol$2(input)) return input;
1425
+ if (!isObject$i(input) || isSymbol$2(input)) return input;
1426
1426
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
1427
1427
  var result;
1428
1428
  if (exoticToPrim) {
1429
1429
  if (pref === undefined) pref = 'default';
1430
1430
  result = call$c(exoticToPrim, input, pref);
1431
- if (!isObject$f(result) || isSymbol$2(result)) return result;
1431
+ if (!isObject$i(result) || isSymbol$2(result)) return result;
1432
1432
  throw TypeError$g("Can't convert object to primitive value");
1433
1433
  }
1434
1434
  if (pref === undefined) pref = 'number';
@@ -1445,23 +1445,23 @@ var Paystack = (function (exports) {
1445
1445
  return isSymbol$1(key) ? key : key + '';
1446
1446
  };
1447
1447
 
1448
- var global$F = global$T;
1449
- var isObject$e = isObject$h;
1448
+ var global$G = global$U;
1449
+ var isObject$h = isObject$k;
1450
1450
 
1451
- var document$3 = global$F.document;
1451
+ var document$3 = global$G.document;
1452
1452
  // typeof document.createElement is 'object' in old IE
1453
- var EXISTS$1 = isObject$e(document$3) && isObject$e(document$3.createElement);
1453
+ var EXISTS$1 = isObject$h(document$3) && isObject$h(document$3.createElement);
1454
1454
 
1455
1455
  var documentCreateElement$2 = function (it) {
1456
1456
  return EXISTS$1 ? document$3.createElement(it) : {};
1457
1457
  };
1458
1458
 
1459
1459
  var DESCRIPTORS$d = descriptors$1;
1460
- var fails$q = fails$v;
1460
+ var fails$s = fails$x;
1461
1461
  var createElement$1 = documentCreateElement$2;
1462
1462
 
1463
1463
  // Thanks to IE8 for its funny defineProperty
1464
- var ie8DomDefine = !DESCRIPTORS$d && !fails$q(function () {
1464
+ var ie8DomDefine = !DESCRIPTORS$d && !fails$s(function () {
1465
1465
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1466
1466
  return Object.defineProperty(createElement$1('div'), 'a', {
1467
1467
  get: function () { return 7; }
@@ -1474,7 +1474,7 @@ var Paystack = (function (exports) {
1474
1474
  var createPropertyDescriptor$5 = createPropertyDescriptor$6;
1475
1475
  var toIndexedObject$7 = toIndexedObject$8;
1476
1476
  var toPropertyKey$2 = toPropertyKey$3;
1477
- var hasOwn$d = hasOwnProperty_1;
1477
+ var hasOwn$e = hasOwnProperty_1;
1478
1478
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
1479
1479
 
1480
1480
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -1488,17 +1488,17 @@ var Paystack = (function (exports) {
1488
1488
  if (IE8_DOM_DEFINE$1) try {
1489
1489
  return $getOwnPropertyDescriptor$1(O, P);
1490
1490
  } catch (error) { /* empty */ }
1491
- if (hasOwn$d(O, P)) return createPropertyDescriptor$5(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
1491
+ if (hasOwn$e(O, P)) return createPropertyDescriptor$5(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
1492
1492
  };
1493
1493
 
1494
1494
  var objectDefineProperty = {};
1495
1495
 
1496
1496
  var DESCRIPTORS$b = descriptors$1;
1497
- var fails$p = fails$v;
1497
+ var fails$r = fails$x;
1498
1498
 
1499
1499
  // V8 ~ Chrome 36-
1500
1500
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
1501
- var v8PrototypeDefineBug = DESCRIPTORS$b && fails$p(function () {
1501
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$r(function () {
1502
1502
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1503
1503
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
1504
1504
  value: 42,
@@ -1506,26 +1506,26 @@ var Paystack = (function (exports) {
1506
1506
  }).prototype != 42;
1507
1507
  });
1508
1508
 
1509
- var global$E = global$T;
1510
- var isObject$d = isObject$h;
1509
+ var global$F = global$U;
1510
+ var isObject$g = isObject$k;
1511
1511
 
1512
- var String$4 = global$E.String;
1513
- var TypeError$f = global$E.TypeError;
1512
+ var String$4 = global$F.String;
1513
+ var TypeError$f = global$F.TypeError;
1514
1514
 
1515
1515
  // `Assert: Type(argument) is Object`
1516
- var anObject$e = function (argument) {
1517
- if (isObject$d(argument)) return argument;
1516
+ var anObject$f = function (argument) {
1517
+ if (isObject$g(argument)) return argument;
1518
1518
  throw TypeError$f(String$4(argument) + ' is not an object');
1519
1519
  };
1520
1520
 
1521
- var global$D = global$T;
1521
+ var global$E = global$U;
1522
1522
  var DESCRIPTORS$a = descriptors$1;
1523
1523
  var IE8_DOM_DEFINE = ie8DomDefine;
1524
1524
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
1525
- var anObject$d = anObject$e;
1525
+ var anObject$e = anObject$f;
1526
1526
  var toPropertyKey$1 = toPropertyKey$3;
1527
1527
 
1528
- var TypeError$e = global$D.TypeError;
1528
+ var TypeError$e = global$E.TypeError;
1529
1529
  // eslint-disable-next-line es/no-object-defineproperty -- safe
1530
1530
  var $defineProperty = Object.defineProperty;
1531
1531
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -1537,9 +1537,9 @@ var Paystack = (function (exports) {
1537
1537
  // `Object.defineProperty` method
1538
1538
  // https://tc39.es/ecma262/#sec-object.defineproperty
1539
1539
  objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
1540
- anObject$d(O);
1540
+ anObject$e(O);
1541
1541
  P = toPropertyKey$1(P);
1542
- anObject$d(Attributes);
1542
+ anObject$e(Attributes);
1543
1543
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
1544
1544
  var current = $getOwnPropertyDescriptor(O, P);
1545
1545
  if (current && current[WRITABLE]) {
@@ -1552,9 +1552,9 @@ var Paystack = (function (exports) {
1552
1552
  }
1553
1553
  } return $defineProperty(O, P, Attributes);
1554
1554
  } : $defineProperty : function defineProperty(O, P, Attributes) {
1555
- anObject$d(O);
1555
+ anObject$e(O);
1556
1556
  P = toPropertyKey$1(P);
1557
- anObject$d(Attributes);
1557
+ anObject$e(Attributes);
1558
1558
  if (IE8_DOM_DEFINE) try {
1559
1559
  return $defineProperty(O, P, Attributes);
1560
1560
  } catch (error) { /* empty */ }
@@ -1574,16 +1574,16 @@ var Paystack = (function (exports) {
1574
1574
  return object;
1575
1575
  };
1576
1576
 
1577
- var redefine$a = {exports: {}};
1577
+ var redefine$b = {exports: {}};
1578
1578
 
1579
- var uncurryThis$r = functionUncurryThis;
1580
- var isCallable$e = isCallable$k;
1579
+ var uncurryThis$t = functionUncurryThis;
1580
+ var isCallable$f = isCallable$l;
1581
1581
  var store$1 = sharedStore;
1582
1582
 
1583
- var functionToString$1 = uncurryThis$r(Function.toString);
1583
+ var functionToString$1 = uncurryThis$t(Function.toString);
1584
1584
 
1585
1585
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
1586
- if (!isCallable$e(store$1.inspectSource)) {
1586
+ if (!isCallable$f(store$1.inspectSource)) {
1587
1587
  store$1.inspectSource = function (it) {
1588
1588
  return functionToString$1(it);
1589
1589
  };
@@ -1591,13 +1591,13 @@ var Paystack = (function (exports) {
1591
1591
 
1592
1592
  var inspectSource$4 = store$1.inspectSource;
1593
1593
 
1594
- var global$C = global$T;
1595
- var isCallable$d = isCallable$k;
1594
+ var global$D = global$U;
1595
+ var isCallable$e = isCallable$l;
1596
1596
  var inspectSource$3 = inspectSource$4;
1597
1597
 
1598
- var WeakMap$1 = global$C.WeakMap;
1598
+ var WeakMap$1 = global$D.WeakMap;
1599
1599
 
1600
- var nativeWeakMap = isCallable$d(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
1600
+ var nativeWeakMap = isCallable$e(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
1601
1601
 
1602
1602
  var shared$2 = shared$4.exports;
1603
1603
  var uid$1 = uid$3;
@@ -1611,18 +1611,18 @@ var Paystack = (function (exports) {
1611
1611
  var hiddenKeys$5 = {};
1612
1612
 
1613
1613
  var NATIVE_WEAK_MAP = nativeWeakMap;
1614
- var global$B = global$T;
1615
- var uncurryThis$q = functionUncurryThis;
1616
- var isObject$c = isObject$h;
1614
+ var global$C = global$U;
1615
+ var uncurryThis$s = functionUncurryThis;
1616
+ var isObject$f = isObject$k;
1617
1617
  var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
1618
- var hasOwn$c = hasOwnProperty_1;
1618
+ var hasOwn$d = hasOwnProperty_1;
1619
1619
  var shared$1 = sharedStore;
1620
1620
  var sharedKey$2 = sharedKey$3;
1621
1621
  var hiddenKeys$4 = hiddenKeys$5;
1622
1622
 
1623
1623
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
1624
- var TypeError$d = global$B.TypeError;
1625
- var WeakMap = global$B.WeakMap;
1624
+ var TypeError$d = global$C.TypeError;
1625
+ var WeakMap = global$C.WeakMap;
1626
1626
  var set$1, get, has$3;
1627
1627
 
1628
1628
  var enforce = function (it) {
@@ -1632,7 +1632,7 @@ var Paystack = (function (exports) {
1632
1632
  var getterFor = function (TYPE) {
1633
1633
  return function (it) {
1634
1634
  var state;
1635
- if (!isObject$c(it) || (state = get(it)).type !== TYPE) {
1635
+ if (!isObject$f(it) || (state = get(it)).type !== TYPE) {
1636
1636
  throw TypeError$d('Incompatible receiver, ' + TYPE + ' required');
1637
1637
  } return state;
1638
1638
  };
@@ -1640,9 +1640,9 @@ var Paystack = (function (exports) {
1640
1640
 
1641
1641
  if (NATIVE_WEAK_MAP || shared$1.state) {
1642
1642
  var store = shared$1.state || (shared$1.state = new WeakMap());
1643
- var wmget = uncurryThis$q(store.get);
1644
- var wmhas = uncurryThis$q(store.has);
1645
- var wmset = uncurryThis$q(store.set);
1643
+ var wmget = uncurryThis$s(store.get);
1644
+ var wmhas = uncurryThis$s(store.has);
1645
+ var wmset = uncurryThis$s(store.set);
1646
1646
  set$1 = function (it, metadata) {
1647
1647
  if (wmhas(store, it)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
1648
1648
  metadata.facade = it;
@@ -1659,16 +1659,16 @@ var Paystack = (function (exports) {
1659
1659
  var STATE = sharedKey$2('state');
1660
1660
  hiddenKeys$4[STATE] = true;
1661
1661
  set$1 = function (it, metadata) {
1662
- if (hasOwn$c(it, STATE)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
1662
+ if (hasOwn$d(it, STATE)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
1663
1663
  metadata.facade = it;
1664
1664
  createNonEnumerableProperty$7(it, STATE, metadata);
1665
1665
  return metadata;
1666
1666
  };
1667
1667
  get = function (it) {
1668
- return hasOwn$c(it, STATE) ? it[STATE] : {};
1668
+ return hasOwn$d(it, STATE) ? it[STATE] : {};
1669
1669
  };
1670
1670
  has$3 = function (it) {
1671
- return hasOwn$c(it, STATE);
1671
+ return hasOwn$d(it, STATE);
1672
1672
  };
1673
1673
  }
1674
1674
 
@@ -1681,13 +1681,13 @@ var Paystack = (function (exports) {
1681
1681
  };
1682
1682
 
1683
1683
  var DESCRIPTORS$8 = descriptors$1;
1684
- var hasOwn$b = hasOwnProperty_1;
1684
+ var hasOwn$c = hasOwnProperty_1;
1685
1685
 
1686
1686
  var FunctionPrototype$2 = Function.prototype;
1687
1687
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1688
1688
  var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor;
1689
1689
 
1690
- var EXISTS = hasOwn$b(FunctionPrototype$2, 'name');
1690
+ var EXISTS = hasOwn$c(FunctionPrototype$2, 'name');
1691
1691
  // additional protection from minified / mangled / dropped function names
1692
1692
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
1693
1693
  var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype$2, 'name').configurable));
@@ -1698,30 +1698,30 @@ var Paystack = (function (exports) {
1698
1698
  CONFIGURABLE: CONFIGURABLE
1699
1699
  };
1700
1700
 
1701
- var global$A = global$T;
1702
- var isCallable$c = isCallable$k;
1703
- var hasOwn$a = hasOwnProperty_1;
1701
+ var global$B = global$U;
1702
+ var isCallable$d = isCallable$l;
1703
+ var hasOwn$b = hasOwnProperty_1;
1704
1704
  var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
1705
1705
  var setGlobal$1 = setGlobal$3;
1706
1706
  var inspectSource$2 = inspectSource$4;
1707
- var InternalStateModule$5 = internalState;
1707
+ var InternalStateModule$6 = internalState;
1708
1708
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
1709
1709
 
1710
- var getInternalState$4 = InternalStateModule$5.get;
1711
- var enforceInternalState = InternalStateModule$5.enforce;
1710
+ var getInternalState$4 = InternalStateModule$6.get;
1711
+ var enforceInternalState = InternalStateModule$6.enforce;
1712
1712
  var TEMPLATE = String(String).split('String');
1713
1713
 
1714
- (redefine$a.exports = function (O, key, value, options) {
1714
+ (redefine$b.exports = function (O, key, value, options) {
1715
1715
  var unsafe = options ? !!options.unsafe : false;
1716
1716
  var simple = options ? !!options.enumerable : false;
1717
1717
  var noTargetGet = options ? !!options.noTargetGet : false;
1718
1718
  var name = options && options.name !== undefined ? options.name : key;
1719
1719
  var state;
1720
- if (isCallable$c(value)) {
1720
+ if (isCallable$d(value)) {
1721
1721
  if (String(name).slice(0, 7) === 'Symbol(') {
1722
1722
  name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
1723
1723
  }
1724
- if (!hasOwn$a(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
1724
+ if (!hasOwn$b(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
1725
1725
  createNonEnumerableProperty$6(value, 'name', name);
1726
1726
  }
1727
1727
  state = enforceInternalState(value);
@@ -1729,7 +1729,7 @@ var Paystack = (function (exports) {
1729
1729
  state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
1730
1730
  }
1731
1731
  }
1732
- if (O === global$A) {
1732
+ if (O === global$B) {
1733
1733
  if (simple) O[key] = value;
1734
1734
  else setGlobal$1(key, value);
1735
1735
  return;
@@ -1742,7 +1742,7 @@ var Paystack = (function (exports) {
1742
1742
  else createNonEnumerableProperty$6(O, key, value);
1743
1743
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1744
1744
  })(Function.prototype, 'toString', function toString() {
1745
- return isCallable$c(this) && getInternalState$4(this).source || inspectSource$2(this);
1745
+ return isCallable$d(this) && getInternalState$4(this).source || inspectSource$2(this);
1746
1746
  });
1747
1747
 
1748
1748
  var objectGetOwnPropertyNames = {};
@@ -1822,22 +1822,22 @@ var Paystack = (function (exports) {
1822
1822
  indexOf: createMethod$5(false)
1823
1823
  };
1824
1824
 
1825
- var uncurryThis$p = functionUncurryThis;
1826
- var hasOwn$9 = hasOwnProperty_1;
1825
+ var uncurryThis$r = functionUncurryThis;
1826
+ var hasOwn$a = hasOwnProperty_1;
1827
1827
  var toIndexedObject$5 = toIndexedObject$8;
1828
1828
  var indexOf$1 = arrayIncludes.indexOf;
1829
1829
  var hiddenKeys$3 = hiddenKeys$5;
1830
1830
 
1831
- var push$7 = uncurryThis$p([].push);
1831
+ var push$7 = uncurryThis$r([].push);
1832
1832
 
1833
1833
  var objectKeysInternal = function (object, names) {
1834
1834
  var O = toIndexedObject$5(object);
1835
1835
  var i = 0;
1836
1836
  var result = [];
1837
1837
  var key;
1838
- for (key in O) !hasOwn$9(hiddenKeys$3, key) && hasOwn$9(O, key) && push$7(result, key);
1838
+ for (key in O) !hasOwn$a(hiddenKeys$3, key) && hasOwn$a(O, key) && push$7(result, key);
1839
1839
  // Don't enum bug & hidden keys
1840
- while (names.length > i) if (hasOwn$9(O, key = names[i++])) {
1840
+ while (names.length > i) if (hasOwn$a(O, key = names[i++])) {
1841
1841
  ~indexOf$1(result, key) || push$7(result, key);
1842
1842
  }
1843
1843
  return result;
@@ -1872,21 +1872,21 @@ var Paystack = (function (exports) {
1872
1872
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1873
1873
 
1874
1874
  var getBuiltIn$7 = getBuiltIn$a;
1875
- var uncurryThis$o = functionUncurryThis;
1875
+ var uncurryThis$q = functionUncurryThis;
1876
1876
  var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames;
1877
1877
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1878
- var anObject$c = anObject$e;
1878
+ var anObject$d = anObject$f;
1879
1879
 
1880
- var concat$1 = uncurryThis$o([].concat);
1880
+ var concat$1 = uncurryThis$q([].concat);
1881
1881
 
1882
1882
  // all object keys, includes non-enumerable and symbols
1883
1883
  var ownKeys$1 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
1884
- var keys = getOwnPropertyNamesModule$1.f(anObject$c(it));
1884
+ var keys = getOwnPropertyNamesModule$1.f(anObject$d(it));
1885
1885
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1886
1886
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1887
1887
  };
1888
1888
 
1889
- var hasOwn$8 = hasOwnProperty_1;
1889
+ var hasOwn$9 = hasOwnProperty_1;
1890
1890
  var ownKeys = ownKeys$1;
1891
1891
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1892
1892
  var definePropertyModule$4 = objectDefineProperty;
@@ -1897,42 +1897,42 @@ var Paystack = (function (exports) {
1897
1897
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1898
1898
  for (var i = 0; i < keys.length; i++) {
1899
1899
  var key = keys[i];
1900
- if (!hasOwn$8(target, key) && !(exceptions && hasOwn$8(exceptions, key))) {
1900
+ if (!hasOwn$9(target, key) && !(exceptions && hasOwn$9(exceptions, key))) {
1901
1901
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1902
1902
  }
1903
1903
  }
1904
1904
  };
1905
1905
 
1906
- var fails$o = fails$v;
1907
- var isCallable$b = isCallable$k;
1906
+ var fails$q = fails$x;
1907
+ var isCallable$c = isCallable$l;
1908
1908
 
1909
1909
  var replacement = /#|\.prototype\./;
1910
1910
 
1911
- var isForced$3 = function (feature, detection) {
1911
+ var isForced$4 = function (feature, detection) {
1912
1912
  var value = data$1[normalize(feature)];
1913
1913
  return value == POLYFILL ? true
1914
1914
  : value == NATIVE ? false
1915
- : isCallable$b(detection) ? fails$o(detection)
1915
+ : isCallable$c(detection) ? fails$q(detection)
1916
1916
  : !!detection;
1917
1917
  };
1918
1918
 
1919
- var normalize = isForced$3.normalize = function (string) {
1919
+ var normalize = isForced$4.normalize = function (string) {
1920
1920
  return String(string).replace(replacement, '.').toLowerCase();
1921
1921
  };
1922
1922
 
1923
- var data$1 = isForced$3.data = {};
1924
- var NATIVE = isForced$3.NATIVE = 'N';
1925
- var POLYFILL = isForced$3.POLYFILL = 'P';
1923
+ var data$1 = isForced$4.data = {};
1924
+ var NATIVE = isForced$4.NATIVE = 'N';
1925
+ var POLYFILL = isForced$4.POLYFILL = 'P';
1926
1926
 
1927
- var isForced_1 = isForced$3;
1927
+ var isForced_1 = isForced$4;
1928
1928
 
1929
- var global$z = global$T;
1929
+ var global$A = global$U;
1930
1930
  var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1931
1931
  var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
1932
- var redefine$9 = redefine$a.exports;
1932
+ var redefine$a = redefine$b.exports;
1933
1933
  var setGlobal = setGlobal$3;
1934
1934
  var copyConstructorProperties$1 = copyConstructorProperties$2;
1935
- var isForced$2 = isForced_1;
1935
+ var isForced$3 = isForced_1;
1936
1936
 
1937
1937
  /*
1938
1938
  options.target - name of the target object
@@ -1955,11 +1955,11 @@ var Paystack = (function (exports) {
1955
1955
  var STATIC = options.stat;
1956
1956
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1957
1957
  if (GLOBAL) {
1958
- target = global$z;
1958
+ target = global$A;
1959
1959
  } else if (STATIC) {
1960
- target = global$z[TARGET] || setGlobal(TARGET, {});
1960
+ target = global$A[TARGET] || setGlobal(TARGET, {});
1961
1961
  } else {
1962
- target = (global$z[TARGET] || {}).prototype;
1962
+ target = (global$A[TARGET] || {}).prototype;
1963
1963
  }
1964
1964
  if (target) for (key in source) {
1965
1965
  sourceProperty = source[key];
@@ -1967,7 +1967,7 @@ var Paystack = (function (exports) {
1967
1967
  descriptor = getOwnPropertyDescriptor$2(target, key);
1968
1968
  targetProperty = descriptor && descriptor.value;
1969
1969
  } else targetProperty = target[key];
1970
- FORCED = isForced$2(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1970
+ FORCED = isForced$3(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1971
1971
  // contained in target
1972
1972
  if (!FORCED && targetProperty !== undefined) {
1973
1973
  if (typeof sourceProperty == typeof targetProperty) continue;
@@ -1978,7 +1978,7 @@ var Paystack = (function (exports) {
1978
1978
  createNonEnumerableProperty$5(sourceProperty, 'sham', true);
1979
1979
  }
1980
1980
  // extend global
1981
- redefine$9(target, key, sourceProperty, options);
1981
+ redefine$a(target, key, sourceProperty, options);
1982
1982
  }
1983
1983
  };
1984
1984
 
@@ -1996,12 +1996,12 @@ var Paystack = (function (exports) {
1996
1996
  else object[propertyKey] = value;
1997
1997
  };
1998
1998
 
1999
- var global$y = global$T;
1999
+ var global$z = global$U;
2000
2000
  var toAbsoluteIndex = toAbsoluteIndex$2;
2001
2001
  var lengthOfArrayLike$6 = lengthOfArrayLike$8;
2002
2002
  var createProperty$2 = createProperty$3;
2003
2003
 
2004
- var Array$4 = global$y.Array;
2004
+ var Array$4 = global$z.Array;
2005
2005
  var max$1 = Math.max;
2006
2006
 
2007
2007
  var arraySliceSimple = function (O, start, end) {
@@ -2040,9 +2040,9 @@ var Paystack = (function (exports) {
2040
2040
  };
2041
2041
 
2042
2042
  // FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
2043
- var fails$n = fails$v;
2043
+ var fails$p = fails$x;
2044
2044
 
2045
- var arrayBufferNonExtensible = fails$n(function () {
2045
+ var arrayBufferNonExtensible = fails$p(function () {
2046
2046
  if (typeof ArrayBuffer == 'function') {
2047
2047
  var buffer = new ArrayBuffer(8);
2048
2048
  // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
@@ -2050,57 +2050,57 @@ var Paystack = (function (exports) {
2050
2050
  }
2051
2051
  });
2052
2052
 
2053
- var fails$m = fails$v;
2054
- var isObject$b = isObject$h;
2053
+ var fails$o = fails$x;
2054
+ var isObject$e = isObject$k;
2055
2055
  var classof$8 = classofRaw$1;
2056
2056
  var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;
2057
2057
 
2058
2058
  // eslint-disable-next-line es/no-object-isextensible -- safe
2059
2059
  var $isExtensible = Object.isExtensible;
2060
- var FAILS_ON_PRIMITIVES$2 = fails$m(function () { $isExtensible(1); });
2060
+ var FAILS_ON_PRIMITIVES$3 = fails$o(function () { $isExtensible(1); });
2061
2061
 
2062
2062
  // `Object.isExtensible` method
2063
2063
  // https://tc39.es/ecma262/#sec-object.isextensible
2064
- var objectIsExtensible = (FAILS_ON_PRIMITIVES$2 || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {
2065
- if (!isObject$b(it)) return false;
2064
+ var objectIsExtensible = (FAILS_ON_PRIMITIVES$3 || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {
2065
+ if (!isObject$e(it)) return false;
2066
2066
  if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$8(it) == 'ArrayBuffer') return false;
2067
2067
  return $isExtensible ? $isExtensible(it) : true;
2068
2068
  } : $isExtensible;
2069
2069
 
2070
- var fails$l = fails$v;
2070
+ var fails$n = fails$x;
2071
2071
 
2072
- var freezing = !fails$l(function () {
2072
+ var freezing = !fails$n(function () {
2073
2073
  // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
2074
2074
  return Object.isExtensible(Object.preventExtensions({}));
2075
2075
  });
2076
2076
 
2077
- var $$m = _export;
2078
- var uncurryThis$n = functionUncurryThis;
2077
+ var $$o = _export;
2078
+ var uncurryThis$p = functionUncurryThis;
2079
2079
  var hiddenKeys$1 = hiddenKeys$5;
2080
- var isObject$a = isObject$h;
2081
- var hasOwn$7 = hasOwnProperty_1;
2080
+ var isObject$d = isObject$k;
2081
+ var hasOwn$8 = hasOwnProperty_1;
2082
2082
  var defineProperty$5 = objectDefineProperty.f;
2083
2083
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
2084
2084
  var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
2085
2085
  var isExtensible = objectIsExtensible;
2086
2086
  var uid = uid$3;
2087
- var FREEZING$1 = freezing;
2087
+ var FREEZING$2 = freezing;
2088
2088
 
2089
2089
  var REQUIRED = false;
2090
2090
  var METADATA = uid('meta');
2091
- var id = 0;
2091
+ var id$1 = 0;
2092
2092
 
2093
2093
  var setMetadata = function (it) {
2094
2094
  defineProperty$5(it, METADATA, { value: {
2095
- objectID: 'O' + id++, // object ID
2095
+ objectID: 'O' + id$1++, // object ID
2096
2096
  weakData: {} // weak collections IDs
2097
2097
  } });
2098
2098
  };
2099
2099
 
2100
2100
  var fastKey = function (it, create) {
2101
2101
  // return a primitive with prefix
2102
- if (!isObject$a(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
2103
- if (!hasOwn$7(it, METADATA)) {
2102
+ if (!isObject$d(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
2103
+ if (!hasOwn$8(it, METADATA)) {
2104
2104
  // can't set metadata to uncaught frozen object
2105
2105
  if (!isExtensible(it)) return 'F';
2106
2106
  // not necessary to add metadata
@@ -2111,8 +2111,8 @@ var Paystack = (function (exports) {
2111
2111
  } return it[METADATA].objectID;
2112
2112
  };
2113
2113
 
2114
- var getWeakData = function (it, create) {
2115
- if (!hasOwn$7(it, METADATA)) {
2114
+ var getWeakData$1 = function (it, create) {
2115
+ if (!hasOwn$8(it, METADATA)) {
2116
2116
  // can't set metadata to uncaught frozen object
2117
2117
  if (!isExtensible(it)) return true;
2118
2118
  // not necessary to add metadata
@@ -2124,8 +2124,8 @@ var Paystack = (function (exports) {
2124
2124
  };
2125
2125
 
2126
2126
  // add metadata on freeze-family methods calling
2127
- var onFreeze$1 = function (it) {
2128
- if (FREEZING$1 && REQUIRED && isExtensible(it) && !hasOwn$7(it, METADATA)) setMetadata(it);
2127
+ var onFreeze$2 = function (it) {
2128
+ if (FREEZING$2 && REQUIRED && isExtensible(it) && !hasOwn$8(it, METADATA)) setMetadata(it);
2129
2129
  return it;
2130
2130
  };
2131
2131
 
@@ -2133,7 +2133,7 @@ var Paystack = (function (exports) {
2133
2133
  meta.enable = function () { /* empty */ };
2134
2134
  REQUIRED = true;
2135
2135
  var getOwnPropertyNames = getOwnPropertyNamesModule.f;
2136
- var splice = uncurryThis$n([].splice);
2136
+ var splice = uncurryThis$p([].splice);
2137
2137
  var test = {};
2138
2138
  test[METADATA] = 1;
2139
2139
 
@@ -2149,7 +2149,7 @@ var Paystack = (function (exports) {
2149
2149
  } return result;
2150
2150
  };
2151
2151
 
2152
- $$m({ target: 'Object', stat: true, forced: true }, {
2152
+ $$o({ target: 'Object', stat: true, forced: true }, {
2153
2153
  getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
2154
2154
  });
2155
2155
  }
@@ -2158,27 +2158,27 @@ var Paystack = (function (exports) {
2158
2158
  var meta = internalMetadata.exports = {
2159
2159
  enable: enable,
2160
2160
  fastKey: fastKey,
2161
- getWeakData: getWeakData,
2162
- onFreeze: onFreeze$1
2161
+ getWeakData: getWeakData$1,
2162
+ onFreeze: onFreeze$2
2163
2163
  };
2164
2164
 
2165
2165
  hiddenKeys$1[METADATA] = true;
2166
2166
 
2167
- var $$l = _export;
2168
- var isObject$9 = isObject$h;
2169
- var onFreeze = internalMetadata.exports.onFreeze;
2170
- var FREEZING = freezing;
2171
- var fails$k = fails$v;
2167
+ var $$n = _export;
2168
+ var isObject$c = isObject$k;
2169
+ var onFreeze$1 = internalMetadata.exports.onFreeze;
2170
+ var FREEZING$1 = freezing;
2171
+ var fails$m = fails$x;
2172
2172
 
2173
2173
  // eslint-disable-next-line es/no-object-seal -- safe
2174
2174
  var $seal = Object.seal;
2175
- var FAILS_ON_PRIMITIVES$1 = fails$k(function () { $seal(1); });
2175
+ var FAILS_ON_PRIMITIVES$2 = fails$m(function () { $seal(1); });
2176
2176
 
2177
2177
  // `Object.seal` method
2178
2178
  // https://tc39.es/ecma262/#sec-object.seal
2179
- $$l({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1, sham: !FREEZING }, {
2179
+ $$n({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2, sham: !FREEZING$1 }, {
2180
2180
  seal: function seal(it) {
2181
- return $seal && isObject$9(it) ? $seal(onFreeze(it)) : it;
2181
+ return $seal && isObject$c(it) ? $seal(onFreeze$1(it)) : it;
2182
2182
  }
2183
2183
  });
2184
2184
 
@@ -2193,21 +2193,21 @@ var Paystack = (function (exports) {
2193
2193
  return call$a.apply(apply$3, arguments);
2194
2194
  });
2195
2195
 
2196
- var global$x = global$T;
2197
- var isCallable$a = isCallable$k;
2196
+ var global$y = global$U;
2197
+ var isCallable$b = isCallable$l;
2198
2198
 
2199
- var String$3 = global$x.String;
2200
- var TypeError$c = global$x.TypeError;
2199
+ var String$3 = global$y.String;
2200
+ var TypeError$c = global$y.TypeError;
2201
2201
 
2202
2202
  var aPossiblePrototype$1 = function (argument) {
2203
- if (typeof argument == 'object' || isCallable$a(argument)) return argument;
2203
+ if (typeof argument == 'object' || isCallable$b(argument)) return argument;
2204
2204
  throw TypeError$c("Can't set " + String$3(argument) + ' as a prototype');
2205
2205
  };
2206
2206
 
2207
2207
  /* eslint-disable no-proto -- safe */
2208
2208
 
2209
- var uncurryThis$m = functionUncurryThis;
2210
- var anObject$b = anObject$e;
2209
+ var uncurryThis$o = functionUncurryThis;
2210
+ var anObject$c = anObject$f;
2211
2211
  var aPossiblePrototype = aPossiblePrototype$1;
2212
2212
 
2213
2213
  // `Object.setPrototypeOf` method
@@ -2220,12 +2220,12 @@ var Paystack = (function (exports) {
2220
2220
  var setter;
2221
2221
  try {
2222
2222
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2223
- setter = uncurryThis$m(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
2223
+ setter = uncurryThis$o(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
2224
2224
  setter(test, []);
2225
2225
  CORRECT_SETTER = test instanceof Array;
2226
2226
  } catch (error) { /* empty */ }
2227
2227
  return function setPrototypeOf(O, proto) {
2228
- anObject$b(O);
2228
+ anObject$c(O);
2229
2229
  aPossiblePrototype(proto);
2230
2230
  if (CORRECT_SETTER) setter(O, proto);
2231
2231
  else O.__proto__ = proto;
@@ -2233,20 +2233,20 @@ var Paystack = (function (exports) {
2233
2233
  };
2234
2234
  }() : undefined);
2235
2235
 
2236
- var isCallable$9 = isCallable$k;
2237
- var isObject$8 = isObject$h;
2236
+ var isCallable$a = isCallable$l;
2237
+ var isObject$b = isObject$k;
2238
2238
  var setPrototypeOf$3 = objectSetPrototypeOf;
2239
2239
 
2240
2240
  // makes subclassing work correct for wrapped built-ins
2241
- var inheritIfRequired$2 = function ($this, dummy, Wrapper) {
2241
+ var inheritIfRequired$3 = function ($this, dummy, Wrapper) {
2242
2242
  var NewTarget, NewTargetPrototype;
2243
2243
  if (
2244
2244
  // it can work only with native `setPrototypeOf`
2245
2245
  setPrototypeOf$3 &&
2246
2246
  // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
2247
- isCallable$9(NewTarget = dummy.constructor) &&
2247
+ isCallable$a(NewTarget = dummy.constructor) &&
2248
2248
  NewTarget !== Wrapper &&
2249
- isObject$8(NewTargetPrototype = NewTarget.prototype) &&
2249
+ isObject$b(NewTargetPrototype = NewTarget.prototype) &&
2250
2250
  NewTargetPrototype !== Wrapper.prototype
2251
2251
  ) setPrototypeOf$3($this, NewTargetPrototype);
2252
2252
  return $this;
@@ -2261,14 +2261,14 @@ var Paystack = (function (exports) {
2261
2261
 
2262
2262
  var toStringTagSupport = String(test$1) === '[object z]';
2263
2263
 
2264
- var global$w = global$T;
2264
+ var global$x = global$U;
2265
2265
  var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
2266
- var isCallable$8 = isCallable$k;
2266
+ var isCallable$9 = isCallable$l;
2267
2267
  var classofRaw = classofRaw$1;
2268
2268
  var wellKnownSymbol$g = wellKnownSymbol$j;
2269
2269
 
2270
2270
  var TO_STRING_TAG$2 = wellKnownSymbol$g('toStringTag');
2271
- var Object$2 = global$w.Object;
2271
+ var Object$2 = global$x.Object;
2272
2272
 
2273
2273
  // ES3 wrong here
2274
2274
  var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
@@ -2289,13 +2289,13 @@ var Paystack = (function (exports) {
2289
2289
  // builtinTag case
2290
2290
  : CORRECT_ARGUMENTS ? classofRaw(O)
2291
2291
  // ES3 arguments fallback
2292
- : (result = classofRaw(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
2292
+ : (result = classofRaw(O)) == 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
2293
2293
  };
2294
2294
 
2295
- var global$v = global$T;
2295
+ var global$w = global$U;
2296
2296
  var classof$6 = classof$7;
2297
2297
 
2298
- var String$2 = global$v.String;
2298
+ var String$2 = global$w.String;
2299
2299
 
2300
2300
  var toString$9 = function (argument) {
2301
2301
  if (classof$6(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
@@ -2308,20 +2308,20 @@ var Paystack = (function (exports) {
2308
2308
  return argument === undefined ? arguments.length < 2 ? '' : $default : toString$8(argument);
2309
2309
  };
2310
2310
 
2311
- var isObject$7 = isObject$h;
2311
+ var isObject$a = isObject$k;
2312
2312
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
2313
2313
 
2314
2314
  // `InstallErrorCause` abstract operation
2315
2315
  // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
2316
2316
  var installErrorCause$1 = function (O, options) {
2317
- if (isObject$7(options) && 'cause' in options) {
2317
+ if (isObject$a(options) && 'cause' in options) {
2318
2318
  createNonEnumerableProperty$4(O, 'cause', options.cause);
2319
2319
  }
2320
2320
  };
2321
2321
 
2322
- var uncurryThis$l = functionUncurryThis;
2322
+ var uncurryThis$n = functionUncurryThis;
2323
2323
 
2324
- var replace$7 = uncurryThis$l(''.replace);
2324
+ var replace$7 = uncurryThis$n(''.replace);
2325
2325
 
2326
2326
  var TEST = (function (arg) { return String(Error(arg).stack); })('zxcasd');
2327
2327
  var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
@@ -2333,10 +2333,10 @@ var Paystack = (function (exports) {
2333
2333
  } return stack;
2334
2334
  };
2335
2335
 
2336
- var fails$j = fails$v;
2336
+ var fails$l = fails$x;
2337
2337
  var createPropertyDescriptor$2 = createPropertyDescriptor$6;
2338
2338
 
2339
- var errorStackInstallable = !fails$j(function () {
2339
+ var errorStackInstallable = !fails$l(function () {
2340
2340
  var error = Error('a');
2341
2341
  if (!('stack' in error)) return true;
2342
2342
  // eslint-disable-next-line es/no-object-defineproperty -- safe
@@ -2345,12 +2345,12 @@ var Paystack = (function (exports) {
2345
2345
  });
2346
2346
 
2347
2347
  var getBuiltIn$6 = getBuiltIn$a;
2348
- var hasOwn$6 = hasOwnProperty_1;
2348
+ var hasOwn$7 = hasOwnProperty_1;
2349
2349
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
2350
2350
  var isPrototypeOf$4 = objectIsPrototypeOf;
2351
2351
  var setPrototypeOf$2 = objectSetPrototypeOf;
2352
2352
  var copyConstructorProperties = copyConstructorProperties$2;
2353
- var inheritIfRequired$1 = inheritIfRequired$2;
2353
+ var inheritIfRequired$2 = inheritIfRequired$3;
2354
2354
  var normalizeStringArgument = normalizeStringArgument$1;
2355
2355
  var installErrorCause = installErrorCause$1;
2356
2356
  var clearErrorStack = clearErrorStack$1;
@@ -2367,7 +2367,7 @@ var Paystack = (function (exports) {
2367
2367
  var OriginalErrorPrototype = OriginalError.prototype;
2368
2368
 
2369
2369
  // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
2370
- if (hasOwn$6(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
2370
+ if (hasOwn$7(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
2371
2371
 
2372
2372
  if (!FORCED) return OriginalError;
2373
2373
 
@@ -2378,7 +2378,7 @@ var Paystack = (function (exports) {
2378
2378
  var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
2379
2379
  if (message !== undefined) createNonEnumerableProperty$3(result, 'message', message);
2380
2380
  if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty$3(result, 'stack', clearErrorStack(result.stack, 2));
2381
- if (this && isPrototypeOf$4(OriginalErrorPrototype, this)) inheritIfRequired$1(result, this, WrappedError);
2381
+ if (this && isPrototypeOf$4(OriginalErrorPrototype, this)) inheritIfRequired$2(result, this, WrappedError);
2382
2382
  if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
2383
2383
  return result;
2384
2384
  });
@@ -2405,27 +2405,27 @@ var Paystack = (function (exports) {
2405
2405
 
2406
2406
  /* eslint-disable no-unused-vars -- required for functions `.length` */
2407
2407
 
2408
- var $$k = _export;
2409
- var global$u = global$T;
2408
+ var $$m = _export;
2409
+ var global$v = global$U;
2410
2410
  var apply$2 = functionApply;
2411
2411
  var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
2412
2412
 
2413
2413
  var WEB_ASSEMBLY = 'WebAssembly';
2414
- var WebAssembly = global$u[WEB_ASSEMBLY];
2414
+ var WebAssembly = global$v[WEB_ASSEMBLY];
2415
2415
 
2416
2416
  var FORCED$5 = Error('e', { cause: 7 }).cause !== 7;
2417
2417
 
2418
2418
  var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
2419
2419
  var O = {};
2420
2420
  O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$5);
2421
- $$k({ global: true, forced: FORCED$5 }, O);
2421
+ $$m({ global: true, forced: FORCED$5 }, O);
2422
2422
  };
2423
2423
 
2424
2424
  var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
2425
2425
  if (WebAssembly && WebAssembly[ERROR_NAME]) {
2426
2426
  var O = {};
2427
2427
  O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$5);
2428
- $$k({ target: WEB_ASSEMBLY, stat: true, forced: FORCED$5 }, O);
2428
+ $$m({ target: WEB_ASSEMBLY, stat: true, forced: FORCED$5 }, O);
2429
2429
  }
2430
2430
  };
2431
2431
 
@@ -2470,9 +2470,9 @@ var Paystack = (function (exports) {
2470
2470
  return classof$5(argument) == 'Array';
2471
2471
  };
2472
2472
 
2473
- var uncurryThis$k = functionUncurryThis;
2474
- var fails$i = fails$v;
2475
- var isCallable$7 = isCallable$k;
2473
+ var uncurryThis$m = functionUncurryThis;
2474
+ var fails$k = fails$x;
2475
+ var isCallable$8 = isCallable$l;
2476
2476
  var classof$4 = classof$7;
2477
2477
  var getBuiltIn$5 = getBuiltIn$a;
2478
2478
  var inspectSource$1 = inspectSource$4;
@@ -2481,11 +2481,11 @@ var Paystack = (function (exports) {
2481
2481
  var empty = [];
2482
2482
  var construct = getBuiltIn$5('Reflect', 'construct');
2483
2483
  var constructorRegExp = /^\s*(?:class|function)\b/;
2484
- var exec$5 = uncurryThis$k(constructorRegExp.exec);
2484
+ var exec$5 = uncurryThis$m(constructorRegExp.exec);
2485
2485
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
2486
2486
 
2487
2487
  var isConstructorModern = function isConstructor(argument) {
2488
- if (!isCallable$7(argument)) return false;
2488
+ if (!isCallable$8(argument)) return false;
2489
2489
  try {
2490
2490
  construct(noop, empty, argument);
2491
2491
  return true;
@@ -2495,7 +2495,7 @@ var Paystack = (function (exports) {
2495
2495
  };
2496
2496
 
2497
2497
  var isConstructorLegacy = function isConstructor(argument) {
2498
- if (!isCallable$7(argument)) return false;
2498
+ if (!isCallable$8(argument)) return false;
2499
2499
  switch (classof$4(argument)) {
2500
2500
  case 'AsyncFunction':
2501
2501
  case 'GeneratorFunction':
@@ -2515,7 +2515,7 @@ var Paystack = (function (exports) {
2515
2515
 
2516
2516
  // `IsConstructor` abstract operation
2517
2517
  // https://tc39.es/ecma262/#sec-isconstructor
2518
- var isConstructor$3 = !construct || fails$i(function () {
2518
+ var isConstructor$3 = !construct || fails$k(function () {
2519
2519
  var called;
2520
2520
  return isConstructorModern(isConstructorModern.call)
2521
2521
  || !isConstructorModern(Object)
@@ -2523,14 +2523,14 @@ var Paystack = (function (exports) {
2523
2523
  || called;
2524
2524
  }) ? isConstructorLegacy : isConstructorModern;
2525
2525
 
2526
- var global$t = global$T;
2526
+ var global$u = global$U;
2527
2527
  var isArray$8 = isArray$9;
2528
2528
  var isConstructor$2 = isConstructor$3;
2529
- var isObject$6 = isObject$h;
2529
+ var isObject$9 = isObject$k;
2530
2530
  var wellKnownSymbol$f = wellKnownSymbol$j;
2531
2531
 
2532
2532
  var SPECIES$4 = wellKnownSymbol$f('species');
2533
- var Array$3 = global$t.Array;
2533
+ var Array$3 = global$u.Array;
2534
2534
 
2535
2535
  // a part of `ArraySpeciesCreate` abstract operation
2536
2536
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
@@ -2540,7 +2540,7 @@ var Paystack = (function (exports) {
2540
2540
  C = originalArray.constructor;
2541
2541
  // cross-realm fallback
2542
2542
  if (isConstructor$2(C) && (C === Array$3 || isArray$8(C.prototype))) C = undefined;
2543
- else if (isObject$6(C)) {
2543
+ else if (isObject$9(C)) {
2544
2544
  C = C[SPECIES$4];
2545
2545
  if (C === null) C = undefined;
2546
2546
  }
@@ -2555,7 +2555,7 @@ var Paystack = (function (exports) {
2555
2555
  return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2556
2556
  };
2557
2557
 
2558
- var fails$h = fails$v;
2558
+ var fails$j = fails$x;
2559
2559
  var wellKnownSymbol$e = wellKnownSymbol$j;
2560
2560
  var V8_VERSION$2 = engineV8Version;
2561
2561
 
@@ -2565,7 +2565,7 @@ var Paystack = (function (exports) {
2565
2565
  // We can't use this feature detection in V8 since it causes
2566
2566
  // deoptimization and serious performance degradation
2567
2567
  // https://github.com/zloirock/core-js/issues/677
2568
- return V8_VERSION$2 >= 51 || !fails$h(function () {
2568
+ return V8_VERSION$2 >= 51 || !fails$j(function () {
2569
2569
  var array = [];
2570
2570
  var constructor = array.constructor = {};
2571
2571
  constructor[SPECIES$3] = function () {
@@ -2575,11 +2575,11 @@ var Paystack = (function (exports) {
2575
2575
  });
2576
2576
  };
2577
2577
 
2578
- var $$j = _export;
2579
- var global$s = global$T;
2580
- var fails$g = fails$v;
2578
+ var $$l = _export;
2579
+ var global$t = global$U;
2580
+ var fails$i = fails$x;
2581
2581
  var isArray$7 = isArray$9;
2582
- var isObject$5 = isObject$h;
2582
+ var isObject$8 = isObject$k;
2583
2583
  var toObject$7 = toObject$9;
2584
2584
  var lengthOfArrayLike$5 = lengthOfArrayLike$8;
2585
2585
  var createProperty$1 = createProperty$3;
@@ -2591,12 +2591,12 @@ var Paystack = (function (exports) {
2591
2591
  var IS_CONCAT_SPREADABLE = wellKnownSymbol$d('isConcatSpreadable');
2592
2592
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
2593
2593
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
2594
- var TypeError$b = global$s.TypeError;
2594
+ var TypeError$b = global$t.TypeError;
2595
2595
 
2596
2596
  // We can't use this feature detection in V8 since it causes
2597
2597
  // deoptimization and serious performance degradation
2598
2598
  // https://github.com/zloirock/core-js/issues/679
2599
- var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$g(function () {
2599
+ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$i(function () {
2600
2600
  var array = [];
2601
2601
  array[IS_CONCAT_SPREADABLE] = false;
2602
2602
  return array.concat()[0] !== array;
@@ -2605,7 +2605,7 @@ var Paystack = (function (exports) {
2605
2605
  var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$2('concat');
2606
2606
 
2607
2607
  var isConcatSpreadable = function (O) {
2608
- if (!isObject$5(O)) return false;
2608
+ if (!isObject$8(O)) return false;
2609
2609
  var spreadable = O[IS_CONCAT_SPREADABLE];
2610
2610
  return spreadable !== undefined ? !!spreadable : isArray$7(O);
2611
2611
  };
@@ -2615,7 +2615,7 @@ var Paystack = (function (exports) {
2615
2615
  // `Array.prototype.concat` method
2616
2616
  // https://tc39.es/ecma262/#sec-array.prototype.concat
2617
2617
  // with adding support of @@isConcatSpreadable and @@species
2618
- $$j({ target: 'Array', proto: true, forced: FORCED$4 }, {
2618
+ $$l({ target: 'Array', proto: true, forced: FORCED$4 }, {
2619
2619
  // eslint-disable-next-line no-unused-vars -- required for `.length`
2620
2620
  concat: function concat(arg) {
2621
2621
  var O = toObject$7(this);
@@ -2672,13 +2672,13 @@ var Paystack = (function (exports) {
2672
2672
  };
2673
2673
 
2674
2674
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2675
- var redefine$8 = redefine$a.exports;
2675
+ var redefine$9 = redefine$b.exports;
2676
2676
  var toString$7 = objectToString;
2677
2677
 
2678
2678
  // `Object.prototype.toString` method
2679
2679
  // https://tc39.es/ecma262/#sec-object.prototype.tostring
2680
2680
  if (!TO_STRING_TAG_SUPPORT) {
2681
- redefine$8(Object.prototype, 'toString', toString$7, { unsafe: true });
2681
+ redefine$9(Object.prototype, 'toString', toString$7, { unsafe: true });
2682
2682
  }
2683
2683
 
2684
2684
  // iterable DOM collections
@@ -2725,11 +2725,11 @@ var Paystack = (function (exports) {
2725
2725
 
2726
2726
  var domTokenListPrototype = DOMTokenListPrototype$2 === Object.prototype ? undefined : DOMTokenListPrototype$2;
2727
2727
 
2728
- var uncurryThis$j = functionUncurryThis;
2728
+ var uncurryThis$l = functionUncurryThis;
2729
2729
  var aCallable$5 = aCallable$7;
2730
2730
  var NATIVE_BIND = functionBindNative;
2731
2731
 
2732
- var bind$b = uncurryThis$j(uncurryThis$j.bind);
2732
+ var bind$b = uncurryThis$l(uncurryThis$l.bind);
2733
2733
 
2734
2734
  // optional / simple context binding
2735
2735
  var functionBindContext = function (fn, that) {
@@ -2740,13 +2740,13 @@ var Paystack = (function (exports) {
2740
2740
  };
2741
2741
 
2742
2742
  var bind$a = functionBindContext;
2743
- var uncurryThis$i = functionUncurryThis;
2743
+ var uncurryThis$k = functionUncurryThis;
2744
2744
  var IndexedObject$3 = indexedObject;
2745
2745
  var toObject$6 = toObject$9;
2746
2746
  var lengthOfArrayLike$4 = lengthOfArrayLike$8;
2747
2747
  var arraySpeciesCreate = arraySpeciesCreate$2;
2748
2748
 
2749
- var push$6 = uncurryThis$i([].push);
2749
+ var push$6 = uncurryThis$k([].push);
2750
2750
 
2751
2751
  // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
2752
2752
  var createMethod$4 = function (TYPE) {
@@ -2813,11 +2813,11 @@ var Paystack = (function (exports) {
2813
2813
  filterReject: createMethod$4(7)
2814
2814
  };
2815
2815
 
2816
- var fails$f = fails$v;
2816
+ var fails$h = fails$x;
2817
2817
 
2818
2818
  var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
2819
2819
  var method = [][METHOD_NAME];
2820
- return !!method && fails$f(function () {
2820
+ return !!method && fails$h(function () {
2821
2821
  // eslint-disable-next-line no-useless-call -- required for testing
2822
2822
  method.call(null, argument || function () { return 1; }, 1);
2823
2823
  });
@@ -2835,7 +2835,7 @@ var Paystack = (function (exports) {
2835
2835
  // eslint-disable-next-line es/no-array-prototype-foreach -- safe
2836
2836
  } : [].forEach;
2837
2837
 
2838
- var global$r = global$T;
2838
+ var global$s = global$U;
2839
2839
  var DOMIterables$1 = domIterables;
2840
2840
  var DOMTokenListPrototype$1 = domTokenListPrototype;
2841
2841
  var forEach$1 = arrayForEach;
@@ -2852,7 +2852,7 @@ var Paystack = (function (exports) {
2852
2852
 
2853
2853
  for (var COLLECTION_NAME$1 in DOMIterables$1) {
2854
2854
  if (DOMIterables$1[COLLECTION_NAME$1]) {
2855
- handlePrototype$1(global$r[COLLECTION_NAME$1] && global$r[COLLECTION_NAME$1].prototype);
2855
+ handlePrototype$1(global$s[COLLECTION_NAME$1] && global$s[COLLECTION_NAME$1].prototype);
2856
2856
  }
2857
2857
  }
2858
2858
 
@@ -2868,27 +2868,27 @@ var Paystack = (function (exports) {
2868
2868
  return internalObjectKeys(O, enumBugKeys$1);
2869
2869
  };
2870
2870
 
2871
- var $$i = _export;
2871
+ var $$k = _export;
2872
2872
  var toObject$5 = toObject$9;
2873
2873
  var nativeKeys = objectKeys$3;
2874
- var fails$e = fails$v;
2874
+ var fails$g = fails$x;
2875
2875
 
2876
- var FAILS_ON_PRIMITIVES = fails$e(function () { nativeKeys(1); });
2876
+ var FAILS_ON_PRIMITIVES$1 = fails$g(function () { nativeKeys(1); });
2877
2877
 
2878
2878
  // `Object.keys` method
2879
2879
  // https://tc39.es/ecma262/#sec-object.keys
2880
- $$i({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
2880
+ $$k({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1 }, {
2881
2881
  keys: function keys(it) {
2882
2882
  return nativeKeys(toObject$5(it));
2883
2883
  }
2884
2884
  });
2885
2885
 
2886
- var anObject$a = anObject$e;
2886
+ var anObject$b = anObject$f;
2887
2887
 
2888
2888
  // `RegExp.prototype.flags` getter implementation
2889
2889
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
2890
2890
  var regexpFlags$1 = function () {
2891
- var that = anObject$a(this);
2891
+ var that = anObject$b(this);
2892
2892
  var result = '';
2893
2893
  if (that.global) result += 'g';
2894
2894
  if (that.ignoreCase) result += 'i';
@@ -2899,13 +2899,13 @@ var Paystack = (function (exports) {
2899
2899
  return result;
2900
2900
  };
2901
2901
 
2902
- var fails$d = fails$v;
2903
- var global$q = global$T;
2902
+ var fails$f = fails$x;
2903
+ var global$r = global$U;
2904
2904
 
2905
2905
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2906
- var $RegExp$2 = global$q.RegExp;
2906
+ var $RegExp$2 = global$r.RegExp;
2907
2907
 
2908
- var UNSUPPORTED_Y$1 = fails$d(function () {
2908
+ var UNSUPPORTED_Y$1 = fails$f(function () {
2909
2909
  var re = $RegExp$2('a', 'y');
2910
2910
  re.lastIndex = 2;
2911
2911
  return re.exec('abcd') != null;
@@ -2913,11 +2913,11 @@ var Paystack = (function (exports) {
2913
2913
 
2914
2914
  // UC Browser bug
2915
2915
  // https://github.com/zloirock/core-js/issues/1008
2916
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$d(function () {
2916
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$f(function () {
2917
2917
  return !$RegExp$2('a', 'y').sticky;
2918
2918
  });
2919
2919
 
2920
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$d(function () {
2920
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$f(function () {
2921
2921
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2922
2922
  var re = $RegExp$2('^r', 'gy');
2923
2923
  re.lastIndex = 2;
@@ -2935,7 +2935,7 @@ var Paystack = (function (exports) {
2935
2935
  var DESCRIPTORS$7 = descriptors$1;
2936
2936
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
2937
2937
  var definePropertyModule$2 = objectDefineProperty;
2938
- var anObject$9 = anObject$e;
2938
+ var anObject$a = anObject$f;
2939
2939
  var toIndexedObject$3 = toIndexedObject$8;
2940
2940
  var objectKeys$2 = objectKeys$3;
2941
2941
 
@@ -2943,7 +2943,7 @@ var Paystack = (function (exports) {
2943
2943
  // https://tc39.es/ecma262/#sec-object.defineproperties
2944
2944
  // eslint-disable-next-line es/no-object-defineproperties -- safe
2945
2945
  objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2946
- anObject$9(O);
2946
+ anObject$a(O);
2947
2947
  var props = toIndexedObject$3(Properties);
2948
2948
  var keys = objectKeys$2(Properties);
2949
2949
  var length = keys.length;
@@ -2959,7 +2959,7 @@ var Paystack = (function (exports) {
2959
2959
 
2960
2960
  /* global ActiveXObject -- old IE, WSH */
2961
2961
 
2962
- var anObject$8 = anObject$e;
2962
+ var anObject$9 = anObject$f;
2963
2963
  var definePropertiesModule = objectDefineProperties;
2964
2964
  var enumBugKeys = enumBugKeys$3;
2965
2965
  var hiddenKeys = hiddenKeys$5;
@@ -3032,7 +3032,7 @@ var Paystack = (function (exports) {
3032
3032
  var objectCreate = Object.create || function create(O, Properties) {
3033
3033
  var result;
3034
3034
  if (O !== null) {
3035
- EmptyConstructor[PROTOTYPE] = anObject$8(O);
3035
+ EmptyConstructor[PROTOTYPE] = anObject$9(O);
3036
3036
  result = new EmptyConstructor();
3037
3037
  EmptyConstructor[PROTOTYPE] = null;
3038
3038
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -3041,24 +3041,24 @@ var Paystack = (function (exports) {
3041
3041
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
3042
3042
  };
3043
3043
 
3044
- var fails$c = fails$v;
3045
- var global$p = global$T;
3044
+ var fails$e = fails$x;
3045
+ var global$q = global$U;
3046
3046
 
3047
3047
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
3048
- var $RegExp$1 = global$p.RegExp;
3048
+ var $RegExp$1 = global$q.RegExp;
3049
3049
 
3050
- var regexpUnsupportedDotAll = fails$c(function () {
3050
+ var regexpUnsupportedDotAll = fails$e(function () {
3051
3051
  var re = $RegExp$1('.', 's');
3052
3052
  return !(re.dotAll && re.exec('\n') && re.flags === 's');
3053
3053
  });
3054
3054
 
3055
- var fails$b = fails$v;
3056
- var global$o = global$T;
3055
+ var fails$d = fails$x;
3056
+ var global$p = global$U;
3057
3057
 
3058
3058
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
3059
- var $RegExp = global$o.RegExp;
3059
+ var $RegExp = global$p.RegExp;
3060
3060
 
3061
- var regexpUnsupportedNcg = fails$b(function () {
3061
+ var regexpUnsupportedNcg = fails$d(function () {
3062
3062
  var re = $RegExp('(?<a>b)', 'g');
3063
3063
  return re.exec('b').groups.a !== 'b' ||
3064
3064
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -3067,7 +3067,7 @@ var Paystack = (function (exports) {
3067
3067
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
3068
3068
  /* eslint-disable regexp/no-useless-quantifier -- testing */
3069
3069
  var call$9 = functionCall;
3070
- var uncurryThis$h = functionUncurryThis;
3070
+ var uncurryThis$j = functionUncurryThis;
3071
3071
  var toString$6 = toString$9;
3072
3072
  var regexpFlags = regexpFlags$1;
3073
3073
  var stickyHelpers = regexpStickyHelpers;
@@ -3080,10 +3080,10 @@ var Paystack = (function (exports) {
3080
3080
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
3081
3081
  var nativeExec = RegExp.prototype.exec;
3082
3082
  var patchedExec = nativeExec;
3083
- var charAt$5 = uncurryThis$h(''.charAt);
3084
- var indexOf = uncurryThis$h(''.indexOf);
3085
- var replace$6 = uncurryThis$h(''.replace);
3086
- var stringSlice$3 = uncurryThis$h(''.slice);
3083
+ var charAt$5 = uncurryThis$j(''.charAt);
3084
+ var indexOf = uncurryThis$j(''.indexOf);
3085
+ var replace$6 = uncurryThis$j(''.replace);
3086
+ var stringSlice$3 = uncurryThis$j(''.slice);
3087
3087
 
3088
3088
  var UPDATES_LAST_INDEX_WRONG = (function () {
3089
3089
  var re1 = /a/;
@@ -3181,23 +3181,23 @@ var Paystack = (function (exports) {
3181
3181
 
3182
3182
  var regexpExec = patchedExec;
3183
3183
 
3184
- var $$h = _export;
3184
+ var $$j = _export;
3185
3185
  var exec$4 = regexpExec;
3186
3186
 
3187
3187
  // `RegExp.prototype.exec` method
3188
3188
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
3189
- $$h({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, {
3189
+ $$j({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, {
3190
3190
  exec: exec$4
3191
3191
  });
3192
3192
 
3193
3193
  // TODO: Remove from `core-js@4` since it's moved to entry points
3194
3194
 
3195
- var $$g = _export;
3196
- var global$n = global$T;
3195
+ var $$i = _export;
3196
+ var global$o = global$U;
3197
3197
  var call$8 = functionCall;
3198
- var uncurryThis$g = functionUncurryThis;
3199
- var isCallable$6 = isCallable$k;
3200
- var isObject$4 = isObject$h;
3198
+ var uncurryThis$i = functionUncurryThis;
3199
+ var isCallable$7 = isCallable$l;
3200
+ var isObject$7 = isObject$k;
3201
3201
 
3202
3202
  var DELEGATES_TO_EXEC = function () {
3203
3203
  var execCalled = false;
@@ -3209,17 +3209,17 @@ var Paystack = (function (exports) {
3209
3209
  return re.test('abc') === true && execCalled;
3210
3210
  }();
3211
3211
 
3212
- var Error$1 = global$n.Error;
3213
- var un$Test = uncurryThis$g(/./.test);
3212
+ var Error$1 = global$o.Error;
3213
+ var un$Test = uncurryThis$i(/./.test);
3214
3214
 
3215
3215
  // `RegExp.prototype.test` method
3216
3216
  // https://tc39.es/ecma262/#sec-regexp.prototype.test
3217
- $$g({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
3217
+ $$i({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
3218
3218
  test: function (str) {
3219
3219
  var exec = this.exec;
3220
- if (!isCallable$6(exec)) return un$Test(this, str);
3220
+ if (!isCallable$7(exec)) return un$Test(this, str);
3221
3221
  var result = call$8(exec, this, str);
3222
- if (result !== null && !isObject$4(result)) {
3222
+ if (result !== null && !isObject$7(result)) {
3223
3223
  throw new Error$1('RegExp exec method returned something other than an Object or null');
3224
3224
  }
3225
3225
  return !!result;
@@ -3230,12 +3230,12 @@ var Paystack = (function (exports) {
3230
3230
  var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
3231
3231
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
3232
3232
 
3233
- var uncurryThis$f = functionUncurryThis;
3233
+ var uncurryThis$h = functionUncurryThis;
3234
3234
  var requireObjectCoercible$1 = requireObjectCoercible$4;
3235
3235
  var toString$5 = toString$9;
3236
3236
  var whitespaces$2 = whitespaces$3;
3237
3237
 
3238
- var replace$5 = uncurryThis$f(''.replace);
3238
+ var replace$5 = uncurryThis$h(''.replace);
3239
3239
  var whitespace = '[' + whitespaces$2 + ']';
3240
3240
  var ltrim = RegExp('^' + whitespace + whitespace + '*');
3241
3241
  var rtrim = RegExp(whitespace + whitespace + '*$');
@@ -3262,21 +3262,21 @@ var Paystack = (function (exports) {
3262
3262
  trim: createMethod$3(3)
3263
3263
  };
3264
3264
 
3265
- var global$m = global$T;
3266
- var fails$a = fails$v;
3267
- var uncurryThis$e = functionUncurryThis;
3265
+ var global$n = global$U;
3266
+ var fails$c = fails$x;
3267
+ var uncurryThis$g = functionUncurryThis;
3268
3268
  var toString$4 = toString$9;
3269
3269
  var trim$2 = stringTrim.trim;
3270
3270
  var whitespaces$1 = whitespaces$3;
3271
3271
 
3272
- var $parseInt$1 = global$m.parseInt;
3273
- var Symbol$1 = global$m.Symbol;
3272
+ var $parseInt$1 = global$n.parseInt;
3273
+ var Symbol$1 = global$n.Symbol;
3274
3274
  var ITERATOR$8 = Symbol$1 && Symbol$1.iterator;
3275
3275
  var hex = /^[+-]?0x/i;
3276
- var exec$3 = uncurryThis$e(hex.exec);
3276
+ var exec$3 = uncurryThis$g(hex.exec);
3277
3277
  var FORCED$3 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
3278
3278
  // MS Edge 18- broken with boxed symbols
3279
- || (ITERATOR$8 && !fails$a(function () { $parseInt$1(Object(ITERATOR$8)); }));
3279
+ || (ITERATOR$8 && !fails$c(function () { $parseInt$1(Object(ITERATOR$8)); }));
3280
3280
 
3281
3281
  // `parseInt` method
3282
3282
  // https://tc39.es/ecma262/#sec-parseint-string-radix
@@ -3285,32 +3285,32 @@ var Paystack = (function (exports) {
3285
3285
  return $parseInt$1(S, (radix >>> 0) || (exec$3(hex, S) ? 16 : 10));
3286
3286
  } : $parseInt$1;
3287
3287
 
3288
- var $$f = _export;
3288
+ var $$h = _export;
3289
3289
  var $parseInt = numberParseInt;
3290
3290
 
3291
3291
  // `parseInt` method
3292
3292
  // https://tc39.es/ecma262/#sec-parseint-string-radix
3293
- $$f({ global: true, forced: parseInt != $parseInt }, {
3293
+ $$h({ global: true, forced: parseInt != $parseInt }, {
3294
3294
  parseInt: $parseInt
3295
3295
  });
3296
3296
 
3297
- var uncurryThis$d = functionUncurryThis;
3297
+ var uncurryThis$f = functionUncurryThis;
3298
3298
 
3299
3299
  // `thisNumberValue` abstract operation
3300
3300
  // https://tc39.es/ecma262/#sec-thisnumbervalue
3301
- var thisNumberValue$1 = uncurryThis$d(1.0.valueOf);
3301
+ var thisNumberValue$1 = uncurryThis$f(1.0.valueOf);
3302
3302
 
3303
3303
  var DESCRIPTORS$6 = descriptors$1;
3304
- var global$l = global$T;
3305
- var uncurryThis$c = functionUncurryThis;
3306
- var isForced$1 = isForced_1;
3307
- var redefine$7 = redefine$a.exports;
3308
- var hasOwn$5 = hasOwnProperty_1;
3309
- var inheritIfRequired = inheritIfRequired$2;
3304
+ var global$m = global$U;
3305
+ var uncurryThis$e = functionUncurryThis;
3306
+ var isForced$2 = isForced_1;
3307
+ var redefine$8 = redefine$b.exports;
3308
+ var hasOwn$6 = hasOwnProperty_1;
3309
+ var inheritIfRequired$1 = inheritIfRequired$3;
3310
3310
  var isPrototypeOf$3 = objectIsPrototypeOf;
3311
3311
  var isSymbol = isSymbol$3;
3312
3312
  var toPrimitive = toPrimitive$2;
3313
- var fails$9 = fails$v;
3313
+ var fails$b = fails$x;
3314
3314
  var getOwnPropertyNames = objectGetOwnPropertyNames.f;
3315
3315
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
3316
3316
  var defineProperty$4 = objectDefineProperty.f;
@@ -3318,11 +3318,11 @@ var Paystack = (function (exports) {
3318
3318
  var trim$1 = stringTrim.trim;
3319
3319
 
3320
3320
  var NUMBER = 'Number';
3321
- var NativeNumber = global$l[NUMBER];
3321
+ var NativeNumber = global$m[NUMBER];
3322
3322
  var NumberPrototype = NativeNumber.prototype;
3323
- var TypeError$a = global$l.TypeError;
3324
- var arraySlice$4 = uncurryThis$c(''.slice);
3325
- var charCodeAt$3 = uncurryThis$c(''.charCodeAt);
3323
+ var TypeError$a = global$m.TypeError;
3324
+ var arraySlice$4 = uncurryThis$e(''.slice);
3325
+ var charCodeAt$3 = uncurryThis$e(''.charCodeAt);
3326
3326
 
3327
3327
  // `ToNumeric` abstract operation
3328
3328
  // https://tc39.es/ecma262/#sec-tonumeric
@@ -3363,13 +3363,13 @@ var Paystack = (function (exports) {
3363
3363
 
3364
3364
  // `Number` constructor
3365
3365
  // https://tc39.es/ecma262/#sec-number-constructor
3366
- if (isForced$1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
3366
+ if (isForced$2(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
3367
3367
  var NumberWrapper = function Number(value) {
3368
3368
  var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
3369
3369
  var dummy = this;
3370
3370
  // check on 1..constructor(foo) case
3371
- return isPrototypeOf$3(NumberPrototype, dummy) && fails$9(function () { thisNumberValue(dummy); })
3372
- ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
3371
+ return isPrototypeOf$3(NumberPrototype, dummy) && fails$b(function () { thisNumberValue(dummy); })
3372
+ ? inheritIfRequired$1(Object(n), dummy, NumberWrapper) : n;
3373
3373
  };
3374
3374
  for (var keys = DESCRIPTORS$6 ? getOwnPropertyNames(NativeNumber) : (
3375
3375
  // ES3:
@@ -3379,13 +3379,13 @@ var Paystack = (function (exports) {
3379
3379
  // ESNext
3380
3380
  'fromString,range'
3381
3381
  ).split(','), j = 0, key; keys.length > j; j++) {
3382
- if (hasOwn$5(NativeNumber, key = keys[j]) && !hasOwn$5(NumberWrapper, key)) {
3382
+ if (hasOwn$6(NativeNumber, key = keys[j]) && !hasOwn$6(NumberWrapper, key)) {
3383
3383
  defineProperty$4(NumberWrapper, key, getOwnPropertyDescriptor$1(NativeNumber, key));
3384
3384
  }
3385
3385
  }
3386
3386
  NumberWrapper.prototype = NumberPrototype;
3387
3387
  NumberPrototype.constructor = NumberWrapper;
3388
- redefine$7(global$l, NUMBER, NumberWrapper);
3388
+ redefine$8(global$m, NUMBER, NumberWrapper);
3389
3389
  }
3390
3390
 
3391
3391
  function isPublicKey(value) {
@@ -3541,7 +3541,7 @@ var Paystack = (function (exports) {
3541
3541
  return errors;
3542
3542
  }
3543
3543
 
3544
- var $$e = _export;
3544
+ var $$g = _export;
3545
3545
  var $map = arrayIteration.map;
3546
3546
  var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
3547
3547
 
@@ -3550,7 +3550,7 @@ var Paystack = (function (exports) {
3550
3550
  // `Array.prototype.map` method
3551
3551
  // https://tc39.es/ecma262/#sec-array.prototype.map
3552
3552
  // with adding support of @@species
3553
- $$e({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
3553
+ $$g({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
3554
3554
  map: function map(callbackfn /* , thisArg */) {
3555
3555
  return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3556
3556
  }
@@ -3617,13 +3617,13 @@ var Paystack = (function (exports) {
3617
3617
 
3618
3618
  var engineWebkitVersion = !!webkit && +webkit[1];
3619
3619
 
3620
- var $$d = _export;
3621
- var uncurryThis$b = functionUncurryThis;
3620
+ var $$f = _export;
3621
+ var uncurryThis$d = functionUncurryThis;
3622
3622
  var aCallable$4 = aCallable$7;
3623
3623
  var toObject$4 = toObject$9;
3624
3624
  var lengthOfArrayLike$3 = lengthOfArrayLike$8;
3625
3625
  var toString$3 = toString$9;
3626
- var fails$8 = fails$v;
3626
+ var fails$a = fails$x;
3627
3627
  var internalSort = arraySort$1;
3628
3628
  var arrayMethodIsStrict$2 = arrayMethodIsStrict$4;
3629
3629
  var FF = engineFfVersion;
@@ -3632,21 +3632,21 @@ var Paystack = (function (exports) {
3632
3632
  var WEBKIT = engineWebkitVersion;
3633
3633
 
3634
3634
  var test = [];
3635
- var un$Sort = uncurryThis$b(test.sort);
3636
- var push$5 = uncurryThis$b(test.push);
3635
+ var un$Sort = uncurryThis$d(test.sort);
3636
+ var push$5 = uncurryThis$d(test.push);
3637
3637
 
3638
3638
  // IE8-
3639
- var FAILS_ON_UNDEFINED = fails$8(function () {
3639
+ var FAILS_ON_UNDEFINED = fails$a(function () {
3640
3640
  test.sort(undefined);
3641
3641
  });
3642
3642
  // V8 bug
3643
- var FAILS_ON_NULL = fails$8(function () {
3643
+ var FAILS_ON_NULL = fails$a(function () {
3644
3644
  test.sort(null);
3645
3645
  });
3646
3646
  // Old WebKit
3647
3647
  var STRICT_METHOD$2 = arrayMethodIsStrict$2('sort');
3648
3648
 
3649
- var STABLE_SORT = !fails$8(function () {
3649
+ var STABLE_SORT = !fails$a(function () {
3650
3650
  // feature detection can be too slow, so check engines versions
3651
3651
  if (V8) return V8 < 70;
3652
3652
  if (FF && FF > 3) return;
@@ -3694,7 +3694,7 @@ var Paystack = (function (exports) {
3694
3694
 
3695
3695
  // `Array.prototype.sort` method
3696
3696
  // https://tc39.es/ecma262/#sec-array.prototype.sort
3697
- $$d({ target: 'Array', proto: true, forced: FORCED$2 }, {
3697
+ $$f({ target: 'Array', proto: true, forced: FORCED$2 }, {
3698
3698
  sort: function sort(comparefn) {
3699
3699
  if (comparefn !== undefined) aCallable$4(comparefn);
3700
3700
 
@@ -3722,7 +3722,7 @@ var Paystack = (function (exports) {
3722
3722
  }
3723
3723
  });
3724
3724
 
3725
- var $$c = _export;
3725
+ var $$e = _export;
3726
3726
  var $filter = arrayIteration.filter;
3727
3727
  var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
3728
3728
 
@@ -3731,26 +3731,26 @@ var Paystack = (function (exports) {
3731
3731
  // `Array.prototype.filter` method
3732
3732
  // https://tc39.es/ecma262/#sec-array.prototype.filter
3733
3733
  // with adding support of @@species
3734
- $$c({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
3734
+ $$e({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
3735
3735
  filter: function filter(callbackfn /* , thisArg */) {
3736
3736
  return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3737
3737
  }
3738
3738
  });
3739
3739
 
3740
- var $$b = _export;
3741
- var uncurryThis$a = functionUncurryThis;
3740
+ var $$d = _export;
3741
+ var uncurryThis$c = functionUncurryThis;
3742
3742
  var IndexedObject$2 = indexedObject;
3743
3743
  var toIndexedObject$2 = toIndexedObject$8;
3744
3744
  var arrayMethodIsStrict$1 = arrayMethodIsStrict$4;
3745
3745
 
3746
- var un$Join = uncurryThis$a([].join);
3746
+ var un$Join = uncurryThis$c([].join);
3747
3747
 
3748
3748
  var ES3_STRINGS = IndexedObject$2 != Object;
3749
3749
  var STRICT_METHOD$1 = arrayMethodIsStrict$1('join', ',');
3750
3750
 
3751
3751
  // `Array.prototype.join` method
3752
3752
  // https://tc39.es/ecma262/#sec-array.prototype.join
3753
- $$b({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
3753
+ $$d({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
3754
3754
  join: function join(separator) {
3755
3755
  return un$Join(toIndexedObject$2(this), separator === undefined ? ',' : separator);
3756
3756
  }
@@ -5173,26 +5173,26 @@ var Paystack = (function (exports) {
5173
5173
 
5174
5174
  var Fingerprint2 = fingerprint2.exports;
5175
5175
 
5176
- var global$k = global$T;
5176
+ var global$l = global$U;
5177
5177
 
5178
- var nativePromiseConstructor = global$k.Promise;
5178
+ var nativePromiseConstructor = global$l.Promise;
5179
5179
 
5180
- var redefine$6 = redefine$a.exports;
5180
+ var redefine$7 = redefine$b.exports;
5181
5181
 
5182
- var redefineAll$2 = function (target, src, options) {
5183
- for (var key in src) redefine$6(target, key, src[key], options);
5182
+ var redefineAll$3 = function (target, src, options) {
5183
+ for (var key in src) redefine$7(target, key, src[key], options);
5184
5184
  return target;
5185
5185
  };
5186
5186
 
5187
5187
  var defineProperty$3 = objectDefineProperty.f;
5188
- var hasOwn$4 = hasOwnProperty_1;
5188
+ var hasOwn$5 = hasOwnProperty_1;
5189
5189
  var wellKnownSymbol$c = wellKnownSymbol$j;
5190
5190
 
5191
5191
  var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
5192
5192
 
5193
- var setToStringTag$5 = function (target, TAG, STATIC) {
5193
+ var setToStringTag$6 = function (target, TAG, STATIC) {
5194
5194
  if (target && !STATIC) target = target.prototype;
5195
- if (target && !hasOwn$4(target, TO_STRING_TAG$1)) {
5195
+ if (target && !hasOwn$5(target, TO_STRING_TAG$1)) {
5196
5196
  defineProperty$3(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
5197
5197
  }
5198
5198
  };
@@ -5216,12 +5216,12 @@ var Paystack = (function (exports) {
5216
5216
  }
5217
5217
  };
5218
5218
 
5219
- var global$j = global$T;
5219
+ var global$k = global$U;
5220
5220
  var isPrototypeOf$2 = objectIsPrototypeOf;
5221
5221
 
5222
- var TypeError$9 = global$j.TypeError;
5222
+ var TypeError$9 = global$k.TypeError;
5223
5223
 
5224
- var anInstance$3 = function (it, Prototype) {
5224
+ var anInstance$5 = function (it, Prototype) {
5225
5225
  if (isPrototypeOf$2(Prototype, it)) return it;
5226
5226
  throw TypeError$9('Incorrect invocation');
5227
5227
  };
@@ -5252,28 +5252,28 @@ var Paystack = (function (exports) {
5252
5252
  || Iterators$3[classof$2(it)];
5253
5253
  };
5254
5254
 
5255
- var global$i = global$T;
5255
+ var global$j = global$U;
5256
5256
  var call$7 = functionCall;
5257
5257
  var aCallable$3 = aCallable$7;
5258
- var anObject$7 = anObject$e;
5258
+ var anObject$8 = anObject$f;
5259
5259
  var tryToString$2 = tryToString$4;
5260
5260
  var getIteratorMethod$3 = getIteratorMethod$4;
5261
5261
 
5262
- var TypeError$8 = global$i.TypeError;
5262
+ var TypeError$8 = global$j.TypeError;
5263
5263
 
5264
5264
  var getIterator$3 = function (argument, usingIterator) {
5265
5265
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
5266
- if (aCallable$3(iteratorMethod)) return anObject$7(call$7(iteratorMethod, argument));
5266
+ if (aCallable$3(iteratorMethod)) return anObject$8(call$7(iteratorMethod, argument));
5267
5267
  throw TypeError$8(tryToString$2(argument) + ' is not iterable');
5268
5268
  };
5269
5269
 
5270
5270
  var call$6 = functionCall;
5271
- var anObject$6 = anObject$e;
5271
+ var anObject$7 = anObject$f;
5272
5272
  var getMethod = getMethod$3;
5273
5273
 
5274
5274
  var iteratorClose$2 = function (iterator, kind, value) {
5275
5275
  var innerResult, innerError;
5276
- anObject$6(iterator);
5276
+ anObject$7(iterator);
5277
5277
  try {
5278
5278
  innerResult = getMethod(iterator, 'return');
5279
5279
  if (!innerResult) {
@@ -5287,14 +5287,14 @@ var Paystack = (function (exports) {
5287
5287
  }
5288
5288
  if (kind === 'throw') throw value;
5289
5289
  if (innerError) throw innerResult;
5290
- anObject$6(innerResult);
5290
+ anObject$7(innerResult);
5291
5291
  return value;
5292
5292
  };
5293
5293
 
5294
- var global$h = global$T;
5294
+ var global$i = global$U;
5295
5295
  var bind$9 = functionBindContext;
5296
5296
  var call$5 = functionCall;
5297
- var anObject$5 = anObject$e;
5297
+ var anObject$6 = anObject$f;
5298
5298
  var tryToString$1 = tryToString$4;
5299
5299
  var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
5300
5300
  var lengthOfArrayLike$2 = lengthOfArrayLike$8;
@@ -5303,7 +5303,7 @@ var Paystack = (function (exports) {
5303
5303
  var getIteratorMethod$2 = getIteratorMethod$4;
5304
5304
  var iteratorClose$1 = iteratorClose$2;
5305
5305
 
5306
- var TypeError$7 = global$h.TypeError;
5306
+ var TypeError$7 = global$i.TypeError;
5307
5307
 
5308
5308
  var Result = function (stopped, result) {
5309
5309
  this.stopped = stopped;
@@ -5312,7 +5312,7 @@ var Paystack = (function (exports) {
5312
5312
 
5313
5313
  var ResultPrototype = Result.prototype;
5314
5314
 
5315
- var iterate$1 = function (iterable, unboundFunction, options) {
5315
+ var iterate$3 = function (iterable, unboundFunction, options) {
5316
5316
  var that = options && options.that;
5317
5317
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
5318
5318
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
@@ -5327,7 +5327,7 @@ var Paystack = (function (exports) {
5327
5327
 
5328
5328
  var callFn = function (value) {
5329
5329
  if (AS_ENTRIES) {
5330
- anObject$5(value);
5330
+ anObject$6(value);
5331
5331
  return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
5332
5332
  } return INTERRUPTED ? fn(value, stop) : fn(value);
5333
5333
  };
@@ -5380,7 +5380,7 @@ var Paystack = (function (exports) {
5380
5380
  Array.from(iteratorWithReturn, function () { throw 2; });
5381
5381
  } catch (error) { /* empty */ }
5382
5382
 
5383
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
5383
+ var checkCorrectnessOfIteration$2 = function (exec, SKIP_CLOSING) {
5384
5384
  if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
5385
5385
  var ITERATION_SUPPORT = false;
5386
5386
  try {
@@ -5397,11 +5397,11 @@ var Paystack = (function (exports) {
5397
5397
  return ITERATION_SUPPORT;
5398
5398
  };
5399
5399
 
5400
- var global$g = global$T;
5400
+ var global$h = global$U;
5401
5401
  var isConstructor$1 = isConstructor$3;
5402
5402
  var tryToString = tryToString$4;
5403
5403
 
5404
- var TypeError$6 = global$g.TypeError;
5404
+ var TypeError$6 = global$h.TypeError;
5405
5405
 
5406
5406
  // `Assert: IsConstructor(argument) is true`
5407
5407
  var aConstructor$1 = function (argument) {
@@ -5409,7 +5409,7 @@ var Paystack = (function (exports) {
5409
5409
  throw TypeError$6(tryToString(argument) + ' is not a constructor');
5410
5410
  };
5411
5411
 
5412
- var anObject$4 = anObject$e;
5412
+ var anObject$5 = anObject$f;
5413
5413
  var aConstructor = aConstructor$1;
5414
5414
  var wellKnownSymbol$7 = wellKnownSymbol$j;
5415
5415
 
@@ -5418,18 +5418,18 @@ var Paystack = (function (exports) {
5418
5418
  // `SpeciesConstructor` abstract operation
5419
5419
  // https://tc39.es/ecma262/#sec-speciesconstructor
5420
5420
  var speciesConstructor$1 = function (O, defaultConstructor) {
5421
- var C = anObject$4(O).constructor;
5421
+ var C = anObject$5(O).constructor;
5422
5422
  var S;
5423
- return C === undefined || (S = anObject$4(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
5423
+ return C === undefined || (S = anObject$5(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
5424
5424
  };
5425
5425
 
5426
- var uncurryThis$9 = functionUncurryThis;
5426
+ var uncurryThis$b = functionUncurryThis;
5427
5427
 
5428
- var arraySlice$2 = uncurryThis$9([].slice);
5428
+ var arraySlice$2 = uncurryThis$b([].slice);
5429
5429
 
5430
- var global$f = global$T;
5430
+ var global$g = global$U;
5431
5431
 
5432
- var TypeError$5 = global$f.TypeError;
5432
+ var TypeError$5 = global$g.TypeError;
5433
5433
 
5434
5434
  var validateArgumentsLength$3 = function (passed, required) {
5435
5435
  if (passed < required) throw TypeError$5('Not enough arguments');
@@ -5441,16 +5441,16 @@ var Paystack = (function (exports) {
5441
5441
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
5442
5442
 
5443
5443
  var classof$1 = classofRaw$1;
5444
- var global$e = global$T;
5444
+ var global$f = global$U;
5445
5445
 
5446
- var engineIsNode = classof$1(global$e.process) == 'process';
5446
+ var engineIsNode = classof$1(global$f.process) == 'process';
5447
5447
 
5448
- var global$d = global$T;
5448
+ var global$e = global$U;
5449
5449
  var apply$1 = functionApply;
5450
5450
  var bind$8 = functionBindContext;
5451
- var isCallable$5 = isCallable$k;
5452
- var hasOwn$3 = hasOwnProperty_1;
5453
- var fails$7 = fails$v;
5451
+ var isCallable$6 = isCallable$l;
5452
+ var hasOwn$4 = hasOwnProperty_1;
5453
+ var fails$9 = fails$x;
5454
5454
  var html = html$2;
5455
5455
  var arraySlice$1 = arraySlice$2;
5456
5456
  var createElement = documentCreateElement$2;
@@ -5458,13 +5458,13 @@ var Paystack = (function (exports) {
5458
5458
  var IS_IOS$1 = engineIsIos;
5459
5459
  var IS_NODE$3 = engineIsNode;
5460
5460
 
5461
- var set = global$d.setImmediate;
5462
- var clear = global$d.clearImmediate;
5463
- var process$3 = global$d.process;
5464
- var Dispatch = global$d.Dispatch;
5465
- var Function$1 = global$d.Function;
5466
- var MessageChannel = global$d.MessageChannel;
5467
- var String$1 = global$d.String;
5461
+ var set = global$e.setImmediate;
5462
+ var clear = global$e.clearImmediate;
5463
+ var process$3 = global$e.process;
5464
+ var Dispatch = global$e.Dispatch;
5465
+ var Function$1 = global$e.Function;
5466
+ var MessageChannel = global$e.MessageChannel;
5467
+ var String$1 = global$e.String;
5468
5468
  var counter = 0;
5469
5469
  var queue$1 = {};
5470
5470
  var ONREADYSTATECHANGE = 'onreadystatechange';
@@ -5472,11 +5472,11 @@ var Paystack = (function (exports) {
5472
5472
 
5473
5473
  try {
5474
5474
  // Deno throws a ReferenceError on `location` access without `--location` flag
5475
- location = global$d.location;
5475
+ location = global$e.location;
5476
5476
  } catch (error) { /* empty */ }
5477
5477
 
5478
5478
  var run = function (id) {
5479
- if (hasOwn$3(queue$1, id)) {
5479
+ if (hasOwn$4(queue$1, id)) {
5480
5480
  var fn = queue$1[id];
5481
5481
  delete queue$1[id];
5482
5482
  fn();
@@ -5495,14 +5495,14 @@ var Paystack = (function (exports) {
5495
5495
 
5496
5496
  var post = function (id) {
5497
5497
  // old engines have not location.origin
5498
- global$d.postMessage(String$1(id), location.protocol + '//' + location.host);
5498
+ global$e.postMessage(String$1(id), location.protocol + '//' + location.host);
5499
5499
  };
5500
5500
 
5501
5501
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
5502
5502
  if (!set || !clear) {
5503
5503
  set = function setImmediate(handler) {
5504
5504
  validateArgumentsLength$2(arguments.length, 1);
5505
- var fn = isCallable$5(handler) ? handler : Function$1(handler);
5505
+ var fn = isCallable$6(handler) ? handler : Function$1(handler);
5506
5506
  var args = arraySlice$1(arguments, 1);
5507
5507
  queue$1[++counter] = function () {
5508
5508
  apply$1(fn, undefined, args);
@@ -5533,14 +5533,14 @@ var Paystack = (function (exports) {
5533
5533
  // Browsers with postMessage, skip WebWorkers
5534
5534
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
5535
5535
  } else if (
5536
- global$d.addEventListener &&
5537
- isCallable$5(global$d.postMessage) &&
5538
- !global$d.importScripts &&
5536
+ global$e.addEventListener &&
5537
+ isCallable$6(global$e.postMessage) &&
5538
+ !global$e.importScripts &&
5539
5539
  location && location.protocol !== 'file:' &&
5540
- !fails$7(post)
5540
+ !fails$9(post)
5541
5541
  ) {
5542
5542
  defer = post;
5543
- global$d.addEventListener('message', listener, false);
5543
+ global$e.addEventListener('message', listener, false);
5544
5544
  // IE8-
5545
5545
  } else if (ONREADYSTATECHANGE in createElement('script')) {
5546
5546
  defer = function (id) {
@@ -5563,15 +5563,15 @@ var Paystack = (function (exports) {
5563
5563
  };
5564
5564
 
5565
5565
  var userAgent$1 = engineUserAgent;
5566
- var global$c = global$T;
5566
+ var global$d = global$U;
5567
5567
 
5568
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$c.Pebble !== undefined;
5568
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$d.Pebble !== undefined;
5569
5569
 
5570
5570
  var userAgent = engineUserAgent;
5571
5571
 
5572
5572
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
5573
5573
 
5574
- var global$b = global$T;
5574
+ var global$c = global$U;
5575
5575
  var bind$7 = functionBindContext;
5576
5576
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
5577
5577
  var macrotask = task$1.set;
@@ -5580,12 +5580,12 @@ var Paystack = (function (exports) {
5580
5580
  var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
5581
5581
  var IS_NODE$2 = engineIsNode;
5582
5582
 
5583
- var MutationObserver = global$b.MutationObserver || global$b.WebKitMutationObserver;
5584
- var document$2 = global$b.document;
5585
- var process$2 = global$b.process;
5586
- var Promise$1 = global$b.Promise;
5583
+ var MutationObserver = global$c.MutationObserver || global$c.WebKitMutationObserver;
5584
+ var document$2 = global$c.document;
5585
+ var process$2 = global$c.process;
5586
+ var Promise$1 = global$c.Promise;
5587
5587
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
5588
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$b, 'queueMicrotask');
5588
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$c, 'queueMicrotask');
5589
5589
  var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
5590
5590
 
5591
5591
  var flush, head, last, notify$1, toggle, node, promise, then;
@@ -5641,7 +5641,7 @@ var Paystack = (function (exports) {
5641
5641
  // - setTimeout
5642
5642
  } else {
5643
5643
  // strange IE + webpack dev server bug - use .bind(global)
5644
- macrotask = bind$7(macrotask, global$b);
5644
+ macrotask = bind$7(macrotask, global$c);
5645
5645
  notify$1 = function () {
5646
5646
  macrotask(flush);
5647
5647
  };
@@ -5678,23 +5678,23 @@ var Paystack = (function (exports) {
5678
5678
  return new PromiseCapability(C);
5679
5679
  };
5680
5680
 
5681
- var anObject$3 = anObject$e;
5682
- var isObject$3 = isObject$h;
5681
+ var anObject$4 = anObject$f;
5682
+ var isObject$6 = isObject$k;
5683
5683
  var newPromiseCapability$1 = newPromiseCapability$2;
5684
5684
 
5685
5685
  var promiseResolve$1 = function (C, x) {
5686
- anObject$3(C);
5687
- if (isObject$3(x) && x.constructor === C) return x;
5686
+ anObject$4(C);
5687
+ if (isObject$6(x) && x.constructor === C) return x;
5688
5688
  var promiseCapability = newPromiseCapability$1.f(C);
5689
5689
  var resolve = promiseCapability.resolve;
5690
5690
  resolve(x);
5691
5691
  return promiseCapability.promise;
5692
5692
  };
5693
5693
 
5694
- var global$a = global$T;
5694
+ var global$b = global$U;
5695
5695
 
5696
5696
  var hostReportErrors$1 = function (a, b) {
5697
- var console = global$a.console;
5697
+ var console = global$b.console;
5698
5698
  if (console && console.error) {
5699
5699
  arguments.length == 1 ? console.error(a) : console.error(a, b);
5700
5700
  }
@@ -5734,23 +5734,23 @@ var Paystack = (function (exports) {
5734
5734
 
5735
5735
  var engineIsBrowser = typeof window == 'object';
5736
5736
 
5737
- var $$a = _export;
5738
- var global$9 = global$T;
5737
+ var $$c = _export;
5738
+ var global$a = global$U;
5739
5739
  var getBuiltIn$2 = getBuiltIn$a;
5740
5740
  var call$4 = functionCall;
5741
5741
  var NativePromise = nativePromiseConstructor;
5742
- var redefine$5 = redefine$a.exports;
5743
- var redefineAll$1 = redefineAll$2;
5742
+ var redefine$6 = redefine$b.exports;
5743
+ var redefineAll$2 = redefineAll$3;
5744
5744
  var setPrototypeOf$1 = objectSetPrototypeOf;
5745
- var setToStringTag$4 = setToStringTag$5;
5745
+ var setToStringTag$5 = setToStringTag$6;
5746
5746
  var setSpecies = setSpecies$1;
5747
5747
  var aCallable$1 = aCallable$7;
5748
- var isCallable$4 = isCallable$k;
5749
- var isObject$2 = isObject$h;
5750
- var anInstance$2 = anInstance$3;
5748
+ var isCallable$5 = isCallable$l;
5749
+ var isObject$5 = isObject$k;
5750
+ var anInstance$4 = anInstance$5;
5751
5751
  var inspectSource = inspectSource$4;
5752
- var iterate = iterate$1;
5753
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
5752
+ var iterate$2 = iterate$3;
5753
+ var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$2;
5754
5754
  var speciesConstructor = speciesConstructor$1;
5755
5755
  var task = task$1.set;
5756
5756
  var microtask = microtask$1;
@@ -5759,8 +5759,8 @@ var Paystack = (function (exports) {
5759
5759
  var newPromiseCapabilityModule = newPromiseCapability$2;
5760
5760
  var perform = perform$1;
5761
5761
  var Queue = queue;
5762
- var InternalStateModule$4 = internalState;
5763
- var isForced = isForced_1;
5762
+ var InternalStateModule$5 = internalState;
5763
+ var isForced$1 = isForced_1;
5764
5764
  var wellKnownSymbol$6 = wellKnownSymbol$j;
5765
5765
  var IS_BROWSER = engineIsBrowser;
5766
5766
  var IS_NODE$1 = engineIsNode;
@@ -5769,20 +5769,20 @@ var Paystack = (function (exports) {
5769
5769
  var SPECIES = wellKnownSymbol$6('species');
5770
5770
  var PROMISE = 'Promise';
5771
5771
 
5772
- var getInternalState$2 = InternalStateModule$4.getterFor(PROMISE);
5773
- var setInternalState$4 = InternalStateModule$4.set;
5774
- var getInternalPromiseState = InternalStateModule$4.getterFor(PROMISE);
5772
+ var getInternalState$2 = InternalStateModule$5.getterFor(PROMISE);
5773
+ var setInternalState$5 = InternalStateModule$5.set;
5774
+ var getInternalPromiseState = InternalStateModule$5.getterFor(PROMISE);
5775
5775
  var NativePromisePrototype = NativePromise && NativePromise.prototype;
5776
5776
  var PromiseConstructor = NativePromise;
5777
5777
  var PromisePrototype = NativePromisePrototype;
5778
- var TypeError$4 = global$9.TypeError;
5779
- var document$1 = global$9.document;
5780
- var process$1 = global$9.process;
5778
+ var TypeError$4 = global$a.TypeError;
5779
+ var document$1 = global$a.document;
5780
+ var process$1 = global$a.process;
5781
5781
  var newPromiseCapability = newPromiseCapabilityModule.f;
5782
5782
  var newGenericPromiseCapability = newPromiseCapability;
5783
5783
 
5784
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$9.dispatchEvent);
5785
- var NATIVE_REJECTION_EVENT = isCallable$4(global$9.PromiseRejectionEvent);
5784
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$a.dispatchEvent);
5785
+ var NATIVE_REJECTION_EVENT = isCallable$5(global$a.PromiseRejectionEvent);
5786
5786
  var UNHANDLED_REJECTION = 'unhandledrejection';
5787
5787
  var REJECTION_HANDLED = 'rejectionhandled';
5788
5788
  var PENDING = 0;
@@ -5794,7 +5794,7 @@ var Paystack = (function (exports) {
5794
5794
 
5795
5795
  var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
5796
5796
 
5797
- var FORCED$1 = isForced(PROMISE, function () {
5797
+ var FORCED$1 = isForced$1(PROMISE, function () {
5798
5798
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
5799
5799
  var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
5800
5800
  // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
@@ -5818,14 +5818,14 @@ var Paystack = (function (exports) {
5818
5818
  return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
5819
5819
  });
5820
5820
 
5821
- var INCORRECT_ITERATION = FORCED$1 || !checkCorrectnessOfIteration(function (iterable) {
5821
+ var INCORRECT_ITERATION = FORCED$1 || !checkCorrectnessOfIteration$1(function (iterable) {
5822
5822
  PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
5823
5823
  });
5824
5824
 
5825
5825
  // helpers
5826
5826
  var isThenable = function (it) {
5827
5827
  var then;
5828
- return isObject$2(it) && isCallable$4(then = it.then) ? then : false;
5828
+ return isObject$5(it) && isCallable$5(then = it.then) ? then : false;
5829
5829
  };
5830
5830
 
5831
5831
  var callReaction = function (reaction, state) {
@@ -5884,14 +5884,14 @@ var Paystack = (function (exports) {
5884
5884
  event.promise = promise;
5885
5885
  event.reason = reason;
5886
5886
  event.initEvent(name, false, true);
5887
- global$9.dispatchEvent(event);
5887
+ global$a.dispatchEvent(event);
5888
5888
  } else event = { promise: promise, reason: reason };
5889
- if (!NATIVE_REJECTION_EVENT && (handler = global$9['on' + name])) handler(event);
5889
+ if (!NATIVE_REJECTION_EVENT && (handler = global$a['on' + name])) handler(event);
5890
5890
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
5891
5891
  };
5892
5892
 
5893
5893
  var onUnhandled = function (state) {
5894
- call$4(task, global$9, function () {
5894
+ call$4(task, global$a, function () {
5895
5895
  var promise = state.facade;
5896
5896
  var value = state.value;
5897
5897
  var IS_UNHANDLED = isUnhandled(state);
@@ -5914,7 +5914,7 @@ var Paystack = (function (exports) {
5914
5914
  };
5915
5915
 
5916
5916
  var onHandleUnhandled = function (state) {
5917
- call$4(task, global$9, function () {
5917
+ call$4(task, global$a, function () {
5918
5918
  var promise = state.facade;
5919
5919
  if (IS_NODE$1) {
5920
5920
  process$1.emit('rejectionHandled', promise);
@@ -5970,7 +5970,7 @@ var Paystack = (function (exports) {
5970
5970
  if (FORCED$1) {
5971
5971
  // 25.4.3.1 Promise(executor)
5972
5972
  PromiseConstructor = function Promise(executor) {
5973
- anInstance$2(this, PromisePrototype);
5973
+ anInstance$4(this, PromisePrototype);
5974
5974
  aCallable$1(executor);
5975
5975
  call$4(Internal, this);
5976
5976
  var state = getInternalState$2(this);
@@ -5983,7 +5983,7 @@ var Paystack = (function (exports) {
5983
5983
  PromisePrototype = PromiseConstructor.prototype;
5984
5984
  // eslint-disable-next-line no-unused-vars -- required for `.length`
5985
5985
  Internal = function Promise(executor) {
5986
- setInternalState$4(this, {
5986
+ setInternalState$5(this, {
5987
5987
  type: PROMISE,
5988
5988
  done: false,
5989
5989
  notified: false,
@@ -5994,7 +5994,7 @@ var Paystack = (function (exports) {
5994
5994
  value: undefined
5995
5995
  });
5996
5996
  };
5997
- Internal.prototype = redefineAll$1(PromisePrototype, {
5997
+ Internal.prototype = redefineAll$2(PromisePrototype, {
5998
5998
  // `Promise.prototype.then` method
5999
5999
  // https://tc39.es/ecma262/#sec-promise.prototype.then
6000
6000
  // eslint-disable-next-line unicorn/no-thenable -- safe
@@ -6002,8 +6002,8 @@ var Paystack = (function (exports) {
6002
6002
  var state = getInternalPromiseState(this);
6003
6003
  var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
6004
6004
  state.parent = true;
6005
- reaction.ok = isCallable$4(onFulfilled) ? onFulfilled : true;
6006
- reaction.fail = isCallable$4(onRejected) && onRejected;
6005
+ reaction.ok = isCallable$5(onFulfilled) ? onFulfilled : true;
6006
+ reaction.fail = isCallable$5(onRejected) && onRejected;
6007
6007
  reaction.domain = IS_NODE$1 ? process$1.domain : undefined;
6008
6008
  if (state.state == PENDING) state.reactions.add(reaction);
6009
6009
  else microtask(function () {
@@ -6030,12 +6030,12 @@ var Paystack = (function (exports) {
6030
6030
  : newGenericPromiseCapability(C);
6031
6031
  };
6032
6032
 
6033
- if (isCallable$4(NativePromise) && NativePromisePrototype !== Object.prototype) {
6033
+ if (isCallable$5(NativePromise) && NativePromisePrototype !== Object.prototype) {
6034
6034
  nativeThen = NativePromisePrototype.then;
6035
6035
 
6036
6036
  if (!SUBCLASSING) {
6037
6037
  // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
6038
- redefine$5(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
6038
+ redefine$6(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
6039
6039
  var that = this;
6040
6040
  return new PromiseConstructor(function (resolve, reject) {
6041
6041
  call$4(nativeThen, that, resolve, reject);
@@ -6044,7 +6044,7 @@ var Paystack = (function (exports) {
6044
6044
  }, { unsafe: true });
6045
6045
 
6046
6046
  // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
6047
- redefine$5(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
6047
+ redefine$6(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
6048
6048
  }
6049
6049
 
6050
6050
  // make `.constructor === Promise` work for native promise-based APIs
@@ -6059,17 +6059,17 @@ var Paystack = (function (exports) {
6059
6059
  }
6060
6060
  }
6061
6061
 
6062
- $$a({ global: true, wrap: true, forced: FORCED$1 }, {
6062
+ $$c({ global: true, wrap: true, forced: FORCED$1 }, {
6063
6063
  Promise: PromiseConstructor
6064
6064
  });
6065
6065
 
6066
- setToStringTag$4(PromiseConstructor, PROMISE, false);
6066
+ setToStringTag$5(PromiseConstructor, PROMISE, false);
6067
6067
  setSpecies(PROMISE);
6068
6068
 
6069
6069
  PromiseWrapper = getBuiltIn$2(PROMISE);
6070
6070
 
6071
6071
  // statics
6072
- $$a({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6072
+ $$c({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6073
6073
  // `Promise.reject` method
6074
6074
  // https://tc39.es/ecma262/#sec-promise.reject
6075
6075
  reject: function reject(r) {
@@ -6079,7 +6079,7 @@ var Paystack = (function (exports) {
6079
6079
  }
6080
6080
  });
6081
6081
 
6082
- $$a({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6082
+ $$c({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6083
6083
  // `Promise.resolve` method
6084
6084
  // https://tc39.es/ecma262/#sec-promise.resolve
6085
6085
  resolve: function resolve(x) {
@@ -6087,7 +6087,7 @@ var Paystack = (function (exports) {
6087
6087
  }
6088
6088
  });
6089
6089
 
6090
- $$a({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
6090
+ $$c({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
6091
6091
  // `Promise.all` method
6092
6092
  // https://tc39.es/ecma262/#sec-promise.all
6093
6093
  all: function all(iterable) {
@@ -6100,7 +6100,7 @@ var Paystack = (function (exports) {
6100
6100
  var values = [];
6101
6101
  var counter = 0;
6102
6102
  var remaining = 1;
6103
- iterate(iterable, function (promise) {
6103
+ iterate$2(iterable, function (promise) {
6104
6104
  var index = counter++;
6105
6105
  var alreadyCalled = false;
6106
6106
  remaining++;
@@ -6124,7 +6124,7 @@ var Paystack = (function (exports) {
6124
6124
  var reject = capability.reject;
6125
6125
  var result = perform(function () {
6126
6126
  var $promiseResolve = aCallable$1(C.resolve);
6127
- iterate(iterable, function (promise) {
6127
+ iterate$2(iterable, function (promise) {
6128
6128
  call$4($promiseResolve, C, promise).then(capability.resolve, reject);
6129
6129
  });
6130
6130
  });
@@ -6243,9 +6243,9 @@ var Paystack = (function (exports) {
6243
6243
  }();
6244
6244
 
6245
6245
  var DESCRIPTORS$4 = descriptors$1;
6246
- var uncurryThis$8 = functionUncurryThis;
6246
+ var uncurryThis$a = functionUncurryThis;
6247
6247
  var call$3 = functionCall;
6248
- var fails$6 = fails$v;
6248
+ var fails$8 = fails$x;
6249
6249
  var objectKeys$1 = objectKeys$3;
6250
6250
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
6251
6251
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -6256,11 +6256,11 @@ var Paystack = (function (exports) {
6256
6256
  var $assign = Object.assign;
6257
6257
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
6258
6258
  var defineProperty$2 = Object.defineProperty;
6259
- var concat = uncurryThis$8([].concat);
6259
+ var concat = uncurryThis$a([].concat);
6260
6260
 
6261
6261
  // `Object.assign` method
6262
6262
  // https://tc39.es/ecma262/#sec-object.assign
6263
- var objectAssign = !$assign || fails$6(function () {
6263
+ var objectAssign = !$assign || fails$8(function () {
6264
6264
  // should have correct order of operations (Edge bug)
6265
6265
  if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
6266
6266
  enumerable: true,
@@ -6299,16 +6299,34 @@ var Paystack = (function (exports) {
6299
6299
  } return T;
6300
6300
  } : $assign;
6301
6301
 
6302
- var $$9 = _export;
6302
+ var $$b = _export;
6303
6303
  var assign$2 = objectAssign;
6304
6304
 
6305
6305
  // `Object.assign` method
6306
6306
  // https://tc39.es/ecma262/#sec-object.assign
6307
6307
  // eslint-disable-next-line es/no-object-assign -- required for testing
6308
- $$9({ target: 'Object', stat: true, forced: Object.assign !== assign$2 }, {
6308
+ $$b({ target: 'Object', stat: true, forced: Object.assign !== assign$2 }, {
6309
6309
  assign: assign$2
6310
6310
  });
6311
6311
 
6312
+ var $$a = _export;
6313
+ var FREEZING = freezing;
6314
+ var fails$7 = fails$x;
6315
+ var isObject$4 = isObject$k;
6316
+ var onFreeze = internalMetadata.exports.onFreeze;
6317
+
6318
+ // eslint-disable-next-line es/no-object-freeze -- safe
6319
+ var $freeze = Object.freeze;
6320
+ var FAILS_ON_PRIMITIVES = fails$7(function () { $freeze(1); });
6321
+
6322
+ // `Object.freeze` method
6323
+ // https://tc39.es/ecma262/#sec-object.freeze
6324
+ $$a({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
6325
+ freeze: function freeze(it) {
6326
+ return $freeze && isObject$4(it) ? $freeze(onFreeze(it)) : it;
6327
+ }
6328
+ });
6329
+
6312
6330
  var config = {
6313
6331
  cookieTestUrl: 'https://legacy-staging.paystack.co/test-iframe/start.html',
6314
6332
  publishableKey: 'uFmz/uE/SDT6GupOrSEXIZXGByjQ0zFkPyc9LqKHFqnTI0WPN3JS5kQPo/j9or0TOXlqMQj2lzHn/UGsQT4XeQ==',
@@ -6366,13 +6384,13 @@ var Paystack = (function (exports) {
6366
6384
  ArrayPrototype[UNSCOPABLES][key] = true;
6367
6385
  };
6368
6386
 
6369
- var $$8 = _export;
6387
+ var $$9 = _export;
6370
6388
  var $includes = arrayIncludes.includes;
6371
6389
  var addToUnscopables$2 = addToUnscopables$3;
6372
6390
 
6373
6391
  // `Array.prototype.includes` method
6374
6392
  // https://tc39.es/ecma262/#sec-array.prototype.includes
6375
- $$8({ target: 'Array', proto: true }, {
6393
+ $$9({ target: 'Array', proto: true }, {
6376
6394
  includes: function includes(el /* , fromIndex = 0 */) {
6377
6395
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
6378
6396
  }
@@ -6482,7 +6500,7 @@ var Paystack = (function (exports) {
6482
6500
  return error;
6483
6501
  },
6484
6502
  parse: function parse(apiResponse) {
6485
- var response = _typeof$1(apiResponse) === 'object' ? apiResponse : {};
6503
+ var response = apiResponse && _typeof$1(apiResponse) === 'object' ? apiResponse : {};
6486
6504
  if (response.data && _typeof$1(response.data) === 'object') {
6487
6505
  Object.assign(response, response.data);
6488
6506
  delete response.data;
@@ -6514,77 +6532,146 @@ var Paystack = (function (exports) {
6514
6532
  if (response.auth && response.auth !== 'none') {
6515
6533
  return this.auth(response);
6516
6534
  }
6535
+ // Below the auth check and gated on `url`: an open_url hand-off is only actionable with an
6536
+ // address, and anything still carrying `auth` is an authentication response first.
6537
+ if (response.status === 'open_url' && response.url) {
6538
+ return this.getCleanResponse(response, 'Continue at the payment provider');
6539
+ }
6517
6540
  return this.error(response);
6518
6541
  }
6519
6542
  };
6520
6543
 
6521
- /* eslint-env browser */
6522
-
6523
- // `context` is passed through to set the class property of `isListening` to true/false
6524
- // and provide the logAPIResponse analytics function
6525
- // eslint-disable-next-line consistent-return, import/prefer-default-export
6526
- var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
6527
- var channel = options.channel,
6528
- paymentMethod = options.paymentMethod;
6529
- var pusher;
6530
- if (window && window.Pusher) {
6531
- pusher = new window.Pusher(configToUse.pusherKey, {
6532
- cluster: 'eu',
6533
- disableStats: true
6534
- });
6535
- }
6536
- var pusherUndefinedError = {
6544
+ // Module-scope singletons rather than per-call objects, and frozen so a consumer
6545
+ // that mutates what it was handed cannot corrupt the next call -- throwing under
6546
+ // the strict mode an ES module gets, silently ignored otherwise. Nothing in this
6547
+ // repo or in checkout-ui-vue3 mutates them today.
6548
+ var LISTEN_ERRORS = {
6549
+ unavailable: Object.freeze({
6537
6550
  status: 'error',
6538
6551
  message: 'We could not listen for charge response.'
6539
- };
6540
- var pusherSubscriptionError = {
6552
+ }),
6553
+ subscriptionFailed: Object.freeze({
6541
6554
  status: 'error',
6542
6555
  message: 'We could not listen for charge response. Use transaction.requery() to check the status.'
6556
+ })
6557
+ };
6558
+
6559
+ // Returns null rather than throwing when Pusher is not on the page, so each
6560
+ // listener can choose what to hand its caller back. The `!window` half only
6561
+ // guards against window being declared and assigned undefined; with window
6562
+ // genuinely absent this throws, which is what both paths already did.
6563
+ var createPusherClient = function createPusherClient() {
6564
+ if (!window || !window.Pusher) {
6565
+ return null;
6566
+ }
6567
+ return new window.Pusher(configToUse.pusherKey, {
6568
+ cluster: 'eu',
6569
+ disableStats: true
6570
+ });
6571
+ };
6572
+
6573
+ // Analytics are logged before the consumer callback runs, so a throwing
6574
+ // callback cannot lose the event.
6575
+ var buildResponseHandler = function buildResponseHandler(_ref) {
6576
+ var context = _ref.context,
6577
+ paymentMethod = _ref.paymentMethod,
6578
+ callback = _ref.callback,
6579
+ teardown = _ref.teardown;
6580
+ return function (response) {
6581
+ var formattedResponse = ChargeResponses.parse(response);
6582
+ context.logAPIResponse(formattedResponse, paymentMethod);
6583
+ callback(formattedResponse, teardown);
6543
6584
  };
6585
+ };
6586
+
6587
+ // The shared listening path for every channel and market. `context` carries the
6588
+ // logAPIResponse analytics function and the isListening flag this path owns.
6589
+ // eslint-disable-next-line consistent-return
6590
+ var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
6591
+ var channel = options.channel,
6592
+ paymentMethod = options.paymentMethod;
6593
+ var pusher = createPusherClient();
6594
+ if (!pusher) {
6595
+ return callback(LISTEN_ERRORS.unavailable, noOp);
6596
+ }
6544
6597
  var unsubscribeFromPusher = function unsubscribeFromPusher() {
6545
6598
  pusher.unsubscribe(channel);
6546
6599
  };
6547
- if (!pusher) {
6548
- return callback(pusherUndefinedError, noOp);
6549
- }
6550
6600
  var pusherSubscription = pusher.subscribe(channel);
6551
6601
  pusherSubscription.bind('pusher:subscription_succeeded', function () {
6552
6602
  context.isListening = true;
6553
6603
  });
6554
6604
  pusherSubscription.bind('pusher:subscription_error', function () {
6555
6605
  context.isListening = false;
6556
- callback(pusherSubscriptionError, noOp);
6606
+ callback(LISTEN_ERRORS.subscriptionFailed, noOp);
6557
6607
  });
6558
- pusherSubscription.bind('response', function (response) {
6559
- var formattedResponse = ChargeResponses.parse(response);
6560
- context.logAPIResponse(formattedResponse, paymentMethod);
6561
- callback(formattedResponse, unsubscribeFromPusher);
6608
+ pusherSubscription.bind('response', buildResponseHandler({
6609
+ context: context,
6610
+ paymentMethod: paymentMethod,
6611
+ callback: callback,
6612
+ teardown: unsubscribeFromPusher
6613
+ }));
6614
+ };
6615
+
6616
+ // Dedicated listener for the Ghana mobile money USSD confirmation channel.
6617
+ // Separate from the shared path because this flow needs an unsubscribe before
6618
+ // any event arrives, and because it must not write context.isListening: it runs
6619
+ // alongside the main charge subscription and the two would fight over one flag
6620
+ // on the same transaction.
6621
+ var subscribeToConfirmationEvents = function subscribeToConfirmationEvents(options, context, callback) {
6622
+ var channel = options.channel,
6623
+ paymentMethod = options.paymentMethod;
6624
+ var pusher = createPusherClient();
6625
+ if (!pusher) {
6626
+ callback(LISTEN_ERRORS.unavailable, noOp);
6627
+ return noOp;
6628
+ }
6629
+ var hasUnsubscribed = false;
6630
+ var unsubscribe = function unsubscribe() {
6631
+ if (hasUnsubscribed) {
6632
+ return;
6633
+ }
6634
+ hasUnsubscribed = true;
6635
+ pusher.unsubscribe(channel);
6636
+ pusher.disconnect();
6637
+ };
6638
+ var pusherSubscription = pusher.subscribe(channel);
6639
+ pusherSubscription.bind('pusher:subscription_error', function () {
6640
+ unsubscribe();
6641
+ callback(LISTEN_ERRORS.subscriptionFailed, unsubscribe);
6562
6642
  });
6643
+ pusherSubscription.bind('response', buildResponseHandler({
6644
+ context: context,
6645
+ paymentMethod: paymentMethod,
6646
+ callback: callback,
6647
+ teardown: unsubscribe
6648
+ }));
6649
+ return unsubscribe;
6563
6650
  };
6564
6651
 
6565
- var uncurryThis$7 = functionUncurryThis;
6652
+ var uncurryThis$9 = functionUncurryThis;
6566
6653
  var PROPER_FUNCTION_NAME$2 = functionName.PROPER;
6567
- var redefine$4 = redefine$a.exports;
6568
- var anObject$2 = anObject$e;
6654
+ var redefine$5 = redefine$b.exports;
6655
+ var anObject$3 = anObject$f;
6569
6656
  var isPrototypeOf = objectIsPrototypeOf;
6570
6657
  var $toString$2 = toString$9;
6571
- var fails$5 = fails$v;
6658
+ var fails$6 = fails$x;
6572
6659
  var regExpFlags = regexpFlags$1;
6573
6660
 
6574
6661
  var TO_STRING = 'toString';
6575
6662
  var RegExpPrototype = RegExp.prototype;
6576
6663
  var n$ToString = RegExpPrototype[TO_STRING];
6577
- var getFlags = uncurryThis$7(regExpFlags);
6664
+ var getFlags = uncurryThis$9(regExpFlags);
6578
6665
 
6579
- var NOT_GENERIC = fails$5(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
6666
+ var NOT_GENERIC = fails$6(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
6580
6667
  // FF44- RegExp#toString has a wrong name
6581
6668
  var INCORRECT_NAME = PROPER_FUNCTION_NAME$2 && n$ToString.name != TO_STRING;
6582
6669
 
6583
6670
  // `RegExp.prototype.toString` method
6584
6671
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
6585
6672
  if (NOT_GENERIC || INCORRECT_NAME) {
6586
- redefine$4(RegExp.prototype, TO_STRING, function toString() {
6587
- var R = anObject$2(this);
6673
+ redefine$5(RegExp.prototype, TO_STRING, function toString() {
6674
+ var R = anObject$3(this);
6588
6675
  var p = $toString$2(R.source);
6589
6676
  var rf = R.flags;
6590
6677
  var f = $toString$2(rf === undefined && isPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf);
@@ -6592,41 +6679,41 @@ var Paystack = (function (exports) {
6592
6679
  }, { unsafe: true });
6593
6680
  }
6594
6681
 
6595
- var fails$4 = fails$v;
6682
+ var fails$5 = fails$x;
6596
6683
 
6597
- var correctPrototypeGetter = !fails$4(function () {
6684
+ var correctPrototypeGetter = !fails$5(function () {
6598
6685
  function F() { /* empty */ }
6599
6686
  F.prototype.constructor = null;
6600
6687
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
6601
6688
  return Object.getPrototypeOf(new F()) !== F.prototype;
6602
6689
  });
6603
6690
 
6604
- var global$8 = global$T;
6605
- var hasOwn$2 = hasOwnProperty_1;
6606
- var isCallable$3 = isCallable$k;
6691
+ var global$9 = global$U;
6692
+ var hasOwn$3 = hasOwnProperty_1;
6693
+ var isCallable$4 = isCallable$l;
6607
6694
  var toObject$2 = toObject$9;
6608
6695
  var sharedKey = sharedKey$3;
6609
6696
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
6610
6697
 
6611
6698
  var IE_PROTO = sharedKey('IE_PROTO');
6612
- var Object$1 = global$8.Object;
6699
+ var Object$1 = global$9.Object;
6613
6700
  var ObjectPrototype = Object$1.prototype;
6614
6701
 
6615
6702
  // `Object.getPrototypeOf` method
6616
6703
  // https://tc39.es/ecma262/#sec-object.getprototypeof
6617
6704
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
6618
6705
  var object = toObject$2(O);
6619
- if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
6706
+ if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
6620
6707
  var constructor = object.constructor;
6621
- if (isCallable$3(constructor) && object instanceof constructor) {
6708
+ if (isCallable$4(constructor) && object instanceof constructor) {
6622
6709
  return constructor.prototype;
6623
6710
  } return object instanceof Object$1 ? ObjectPrototype : null;
6624
6711
  };
6625
6712
 
6626
- var fails$3 = fails$v;
6627
- var isCallable$2 = isCallable$k;
6713
+ var fails$4 = fails$x;
6714
+ var isCallable$3 = isCallable$l;
6628
6715
  var getPrototypeOf$1 = objectGetPrototypeOf;
6629
- var redefine$3 = redefine$a.exports;
6716
+ var redefine$4 = redefine$b.exports;
6630
6717
  var wellKnownSymbol$4 = wellKnownSymbol$j;
6631
6718
 
6632
6719
  var ITERATOR$4 = wellKnownSymbol$4('iterator');
@@ -6647,7 +6734,7 @@ var Paystack = (function (exports) {
6647
6734
  }
6648
6735
  }
6649
6736
 
6650
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$3(function () {
6737
+ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$4(function () {
6651
6738
  var test = {};
6652
6739
  // FF44- legacy iterators case
6653
6740
  return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
@@ -6657,8 +6744,8 @@ var Paystack = (function (exports) {
6657
6744
 
6658
6745
  // `%IteratorPrototype%[@@iterator]()` method
6659
6746
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
6660
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$4])) {
6661
- redefine$3(IteratorPrototype$2, ITERATOR$4, function () {
6747
+ if (!isCallable$3(IteratorPrototype$2[ITERATOR$4])) {
6748
+ redefine$4(IteratorPrototype$2, ITERATOR$4, function () {
6662
6749
  return this;
6663
6750
  });
6664
6751
  }
@@ -6671,7 +6758,7 @@ var Paystack = (function (exports) {
6671
6758
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
6672
6759
  var create$1 = objectCreate;
6673
6760
  var createPropertyDescriptor$1 = createPropertyDescriptor$6;
6674
- var setToStringTag$3 = setToStringTag$5;
6761
+ var setToStringTag$4 = setToStringTag$6;
6675
6762
  var Iterators$2 = iterators;
6676
6763
 
6677
6764
  var returnThis$1 = function () { return this; };
@@ -6679,21 +6766,21 @@ var Paystack = (function (exports) {
6679
6766
  var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
6680
6767
  var TO_STRING_TAG = NAME + ' Iterator';
6681
6768
  IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
6682
- setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
6769
+ setToStringTag$4(IteratorConstructor, TO_STRING_TAG, false);
6683
6770
  Iterators$2[TO_STRING_TAG] = returnThis$1;
6684
6771
  return IteratorConstructor;
6685
6772
  };
6686
6773
 
6687
- var $$7 = _export;
6774
+ var $$8 = _export;
6688
6775
  var call$2 = functionCall;
6689
6776
  var FunctionName = functionName;
6690
- var isCallable$1 = isCallable$k;
6777
+ var isCallable$2 = isCallable$l;
6691
6778
  var createIteratorConstructor$1 = createIteratorConstructor$2;
6692
6779
  var getPrototypeOf = objectGetPrototypeOf;
6693
6780
  var setPrototypeOf = objectSetPrototypeOf;
6694
- var setToStringTag$2 = setToStringTag$5;
6781
+ var setToStringTag$3 = setToStringTag$6;
6695
6782
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
6696
- var redefine$2 = redefine$a.exports;
6783
+ var redefine$3 = redefine$b.exports;
6697
6784
  var wellKnownSymbol$3 = wellKnownSymbol$j;
6698
6785
  var Iterators$1 = iterators;
6699
6786
  var IteratorsCore = iteratorsCore;
@@ -6739,12 +6826,12 @@ var Paystack = (function (exports) {
6739
6826
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
6740
6827
  if (setPrototypeOf) {
6741
6828
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
6742
- } else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$3])) {
6743
- redefine$2(CurrentIteratorPrototype, ITERATOR$3, returnThis);
6829
+ } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$3])) {
6830
+ redefine$3(CurrentIteratorPrototype, ITERATOR$3, returnThis);
6744
6831
  }
6745
6832
  }
6746
6833
  // Set @@toStringTag to native iterators
6747
- setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
6834
+ setToStringTag$3(CurrentIteratorPrototype, TO_STRING_TAG, true);
6748
6835
  }
6749
6836
  }
6750
6837
 
@@ -6767,14 +6854,14 @@ var Paystack = (function (exports) {
6767
6854
  };
6768
6855
  if (FORCED) for (KEY in methods) {
6769
6856
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
6770
- redefine$2(IterablePrototype, KEY, methods[KEY]);
6857
+ redefine$3(IterablePrototype, KEY, methods[KEY]);
6771
6858
  }
6772
- } else $$7({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
6859
+ } else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
6773
6860
  }
6774
6861
 
6775
6862
  // define iterator
6776
6863
  if (IterablePrototype[ITERATOR$3] !== defaultIterator) {
6777
- redefine$2(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
6864
+ redefine$3(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
6778
6865
  }
6779
6866
  Iterators$1[NAME] = defaultIterator;
6780
6867
 
@@ -6784,14 +6871,14 @@ var Paystack = (function (exports) {
6784
6871
  var toIndexedObject$1 = toIndexedObject$8;
6785
6872
  var addToUnscopables$1 = addToUnscopables$3;
6786
6873
  var Iterators = iterators;
6787
- var InternalStateModule$3 = internalState;
6874
+ var InternalStateModule$4 = internalState;
6788
6875
  var defineProperty$1 = objectDefineProperty.f;
6789
6876
  var defineIterator$1 = defineIterator$2;
6790
6877
  var DESCRIPTORS$3 = descriptors$1;
6791
6878
 
6792
6879
  var ARRAY_ITERATOR = 'Array Iterator';
6793
- var setInternalState$3 = InternalStateModule$3.set;
6794
- var getInternalState$1 = InternalStateModule$3.getterFor(ARRAY_ITERATOR);
6880
+ var setInternalState$4 = InternalStateModule$4.set;
6881
+ var getInternalState$1 = InternalStateModule$4.getterFor(ARRAY_ITERATOR);
6795
6882
 
6796
6883
  // `Array.prototype.entries` method
6797
6884
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -6804,7 +6891,7 @@ var Paystack = (function (exports) {
6804
6891
  // `CreateArrayIterator` internal method
6805
6892
  // https://tc39.es/ecma262/#sec-createarrayiterator
6806
6893
  var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
6807
- setInternalState$3(this, {
6894
+ setInternalState$4(this, {
6808
6895
  type: ARRAY_ITERATOR,
6809
6896
  target: toIndexedObject$1(iterated), // target
6810
6897
  index: 0, // next index
@@ -6841,14 +6928,14 @@ var Paystack = (function (exports) {
6841
6928
  defineProperty$1(values, 'name', { value: 'values' });
6842
6929
  } catch (error) { /* empty */ }
6843
6930
 
6844
- var uncurryThis$6 = functionUncurryThis;
6931
+ var uncurryThis$8 = functionUncurryThis;
6845
6932
  var toIntegerOrInfinity = toIntegerOrInfinity$3;
6846
6933
  var toString$2 = toString$9;
6847
6934
  var requireObjectCoercible = requireObjectCoercible$4;
6848
6935
 
6849
- var charAt$4 = uncurryThis$6(''.charAt);
6850
- var charCodeAt$2 = uncurryThis$6(''.charCodeAt);
6851
- var stringSlice$2 = uncurryThis$6(''.slice);
6936
+ var charAt$4 = uncurryThis$8(''.charAt);
6937
+ var charCodeAt$2 = uncurryThis$8(''.charCodeAt);
6938
+ var stringSlice$2 = uncurryThis$8(''.slice);
6852
6939
 
6853
6940
  var createMethod$2 = function (CONVERT_TO_STRING) {
6854
6941
  return function ($this, pos) {
@@ -6880,17 +6967,17 @@ var Paystack = (function (exports) {
6880
6967
 
6881
6968
  var charAt$3 = stringMultibyte.charAt;
6882
6969
  var toString$1 = toString$9;
6883
- var InternalStateModule$2 = internalState;
6970
+ var InternalStateModule$3 = internalState;
6884
6971
  var defineIterator = defineIterator$2;
6885
6972
 
6886
6973
  var STRING_ITERATOR = 'String Iterator';
6887
- var setInternalState$2 = InternalStateModule$2.set;
6888
- var getInternalState = InternalStateModule$2.getterFor(STRING_ITERATOR);
6974
+ var setInternalState$3 = InternalStateModule$3.set;
6975
+ var getInternalState = InternalStateModule$3.getterFor(STRING_ITERATOR);
6889
6976
 
6890
6977
  // `String.prototype[@@iterator]` method
6891
6978
  // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
6892
6979
  defineIterator(String, 'String', function (iterated) {
6893
- setInternalState$2(this, {
6980
+ setInternalState$3(this, {
6894
6981
  type: STRING_ITERATOR,
6895
6982
  string: toString$1(iterated),
6896
6983
  index: 0
@@ -6908,7 +6995,7 @@ var Paystack = (function (exports) {
6908
6995
  return { value: point, done: false };
6909
6996
  });
6910
6997
 
6911
- var global$7 = global$T;
6998
+ var global$8 = global$U;
6912
6999
  var DOMIterables = domIterables;
6913
7000
  var DOMTokenListPrototype = domTokenListPrototype;
6914
7001
  var ArrayIteratorMethods = es_array_iterator;
@@ -6942,18 +7029,18 @@ var Paystack = (function (exports) {
6942
7029
  };
6943
7030
 
6944
7031
  for (var COLLECTION_NAME in DOMIterables) {
6945
- handlePrototype(global$7[COLLECTION_NAME] && global$7[COLLECTION_NAME].prototype, COLLECTION_NAME);
7032
+ handlePrototype(global$8[COLLECTION_NAME] && global$8[COLLECTION_NAME].prototype, COLLECTION_NAME);
6946
7033
  }
6947
7034
 
6948
7035
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
6949
7036
 
6950
- var fails$2 = fails$v;
7037
+ var fails$3 = fails$x;
6951
7038
  var wellKnownSymbol$1 = wellKnownSymbol$j;
6952
7039
  var IS_PURE = isPure;
6953
7040
 
6954
7041
  var ITERATOR$1 = wellKnownSymbol$1('iterator');
6955
7042
 
6956
- var nativeUrl = !fails$2(function () {
7043
+ var nativeUrl = !fails$3(function () {
6957
7044
  // eslint-disable-next-line unicorn/relative-url-style -- required for testing
6958
7045
  var url = new URL('b?a=1&b=2&c=3', 'http://a');
6959
7046
  var searchParams = url.searchParams;
@@ -6982,19 +7069,19 @@ var Paystack = (function (exports) {
6982
7069
  || new URL('http://x', undefined).host !== 'x';
6983
7070
  });
6984
7071
 
6985
- var anObject$1 = anObject$e;
7072
+ var anObject$2 = anObject$f;
6986
7073
  var iteratorClose = iteratorClose$2;
6987
7074
 
6988
7075
  // call something on iterator step with safe closing on error
6989
7076
  var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
6990
7077
  try {
6991
- return ENTRIES ? fn(anObject$1(value)[0], value[1]) : fn(value);
7078
+ return ENTRIES ? fn(anObject$2(value)[0], value[1]) : fn(value);
6992
7079
  } catch (error) {
6993
7080
  iteratorClose(iterator, 'throw', error);
6994
7081
  }
6995
7082
  };
6996
7083
 
6997
- var global$6 = global$T;
7084
+ var global$7 = global$U;
6998
7085
  var bind$5 = functionBindContext;
6999
7086
  var call$1 = functionCall;
7000
7087
  var toObject$1 = toObject$9;
@@ -7006,7 +7093,7 @@ var Paystack = (function (exports) {
7006
7093
  var getIterator$1 = getIterator$3;
7007
7094
  var getIteratorMethod$1 = getIteratorMethod$4;
7008
7095
 
7009
- var Array$2 = global$6.Array;
7096
+ var Array$2 = global$7.Array;
7010
7097
 
7011
7098
  // `Array.from` method implementation
7012
7099
  // https://tc39.es/ecma262/#sec-array.from
@@ -7042,8 +7129,8 @@ var Paystack = (function (exports) {
7042
7129
  };
7043
7130
 
7044
7131
  // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
7045
- var global$5 = global$T;
7046
- var uncurryThis$5 = functionUncurryThis;
7132
+ var global$6 = global$U;
7133
+ var uncurryThis$7 = functionUncurryThis;
7047
7134
 
7048
7135
  var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
7049
7136
  var base = 36;
@@ -7059,16 +7146,16 @@ var Paystack = (function (exports) {
7059
7146
  var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
7060
7147
  var baseMinusTMin = base - tMin;
7061
7148
 
7062
- var RangeError = global$5.RangeError;
7063
- var exec$2 = uncurryThis$5(regexSeparators.exec);
7149
+ var RangeError = global$6.RangeError;
7150
+ var exec$2 = uncurryThis$7(regexSeparators.exec);
7064
7151
  var floor$1 = Math.floor;
7065
7152
  var fromCharCode = String.fromCharCode;
7066
- var charCodeAt$1 = uncurryThis$5(''.charCodeAt);
7067
- var join$2 = uncurryThis$5([].join);
7068
- var push$4 = uncurryThis$5([].push);
7069
- var replace$4 = uncurryThis$5(''.replace);
7070
- var split$3 = uncurryThis$5(''.split);
7071
- var toLowerCase$1 = uncurryThis$5(''.toLowerCase);
7153
+ var charCodeAt$1 = uncurryThis$7(''.charCodeAt);
7154
+ var join$2 = uncurryThis$7([].join);
7155
+ var push$4 = uncurryThis$7([].push);
7156
+ var replace$4 = uncurryThis$7(''.replace);
7157
+ var split$3 = uncurryThis$7(''.split);
7158
+ var toLowerCase$1 = uncurryThis$7(''.toLowerCase);
7072
7159
 
7073
7160
  /**
7074
7161
  * Creates an array containing the numeric code points of each Unicode
@@ -7225,24 +7312,24 @@ var Paystack = (function (exports) {
7225
7312
 
7226
7313
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
7227
7314
 
7228
- var $$6 = _export;
7229
- var global$4 = global$T;
7315
+ var $$7 = _export;
7316
+ var global$5 = global$U;
7230
7317
  var getBuiltIn$1 = getBuiltIn$a;
7231
7318
  var call = functionCall;
7232
- var uncurryThis$4 = functionUncurryThis;
7319
+ var uncurryThis$6 = functionUncurryThis;
7233
7320
  var USE_NATIVE_URL$1 = nativeUrl;
7234
- var redefine$1 = redefine$a.exports;
7235
- var redefineAll = redefineAll$2;
7236
- var setToStringTag$1 = setToStringTag$5;
7321
+ var redefine$2 = redefine$b.exports;
7322
+ var redefineAll$1 = redefineAll$3;
7323
+ var setToStringTag$2 = setToStringTag$6;
7237
7324
  var createIteratorConstructor = createIteratorConstructor$2;
7238
- var InternalStateModule$1 = internalState;
7239
- var anInstance$1 = anInstance$3;
7240
- var isCallable = isCallable$k;
7241
- var hasOwn$1 = hasOwnProperty_1;
7325
+ var InternalStateModule$2 = internalState;
7326
+ var anInstance$3 = anInstance$5;
7327
+ var isCallable$1 = isCallable$l;
7328
+ var hasOwn$2 = hasOwnProperty_1;
7242
7329
  var bind$4 = functionBindContext;
7243
7330
  var classof = classof$7;
7244
- var anObject = anObject$e;
7245
- var isObject$1 = isObject$h;
7331
+ var anObject$1 = anObject$f;
7332
+ var isObject$3 = isObject$k;
7246
7333
  var $toString$1 = toString$9;
7247
7334
  var create = objectCreate;
7248
7335
  var createPropertyDescriptor = createPropertyDescriptor$6;
@@ -7255,27 +7342,27 @@ var Paystack = (function (exports) {
7255
7342
  var ITERATOR = wellKnownSymbol('iterator');
7256
7343
  var URL_SEARCH_PARAMS = 'URLSearchParams';
7257
7344
  var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
7258
- var setInternalState$1 = InternalStateModule$1.set;
7259
- var getInternalParamsState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS);
7260
- var getInternalIteratorState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR);
7345
+ var setInternalState$2 = InternalStateModule$2.set;
7346
+ var getInternalParamsState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS);
7347
+ var getInternalIteratorState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS_ITERATOR);
7261
7348
 
7262
7349
  var n$Fetch = getBuiltIn$1('fetch');
7263
7350
  var N$Request = getBuiltIn$1('Request');
7264
7351
  var Headers = getBuiltIn$1('Headers');
7265
7352
  var RequestPrototype = N$Request && N$Request.prototype;
7266
7353
  var HeadersPrototype = Headers && Headers.prototype;
7267
- var RegExp$1 = global$4.RegExp;
7268
- var TypeError$3 = global$4.TypeError;
7269
- var decodeURIComponent$1 = global$4.decodeURIComponent;
7270
- var encodeURIComponent$1 = global$4.encodeURIComponent;
7271
- var charAt$2 = uncurryThis$4(''.charAt);
7272
- var join$1 = uncurryThis$4([].join);
7273
- var push$3 = uncurryThis$4([].push);
7274
- var replace$3 = uncurryThis$4(''.replace);
7275
- var shift$1 = uncurryThis$4([].shift);
7276
- var splice = uncurryThis$4([].splice);
7277
- var split$2 = uncurryThis$4(''.split);
7278
- var stringSlice$1 = uncurryThis$4(''.slice);
7354
+ var RegExp$1 = global$5.RegExp;
7355
+ var TypeError$3 = global$5.TypeError;
7356
+ var decodeURIComponent$1 = global$5.decodeURIComponent;
7357
+ var encodeURIComponent$1 = global$5.encodeURIComponent;
7358
+ var charAt$2 = uncurryThis$6(''.charAt);
7359
+ var join$1 = uncurryThis$6([].join);
7360
+ var push$3 = uncurryThis$6([].push);
7361
+ var replace$3 = uncurryThis$6(''.replace);
7362
+ var shift$1 = uncurryThis$6([].shift);
7363
+ var splice$1 = uncurryThis$6([].splice);
7364
+ var split$2 = uncurryThis$6(''.split);
7365
+ var stringSlice$1 = uncurryThis$6(''.slice);
7279
7366
 
7280
7367
  var plus = /\+/g;
7281
7368
  var sequences = Array(4);
@@ -7305,7 +7392,7 @@ var Paystack = (function (exports) {
7305
7392
  }
7306
7393
  };
7307
7394
 
7308
- var find = /[!'()~]|%20/g;
7395
+ var find$1 = /[!'()~]|%20/g;
7309
7396
 
7310
7397
  var replacements = {
7311
7398
  '!': '%21',
@@ -7321,11 +7408,11 @@ var Paystack = (function (exports) {
7321
7408
  };
7322
7409
 
7323
7410
  var serialize = function (it) {
7324
- return replace$3(encodeURIComponent$1(it), find, replacer);
7411
+ return replace$3(encodeURIComponent$1(it), find$1, replacer);
7325
7412
  };
7326
7413
 
7327
7414
  var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
7328
- setInternalState$1(this, {
7415
+ setInternalState$2(this, {
7329
7416
  type: URL_SEARCH_PARAMS_ITERATOR,
7330
7417
  iterator: getIterator(getInternalParamsState(params).entries),
7331
7418
  kind: kind
@@ -7345,7 +7432,7 @@ var Paystack = (function (exports) {
7345
7432
  this.url = null;
7346
7433
 
7347
7434
  if (init !== undefined) {
7348
- if (isObject$1(init)) this.parseObject(init);
7435
+ if (isObject$3(init)) this.parseObject(init);
7349
7436
  else this.parseQuery(typeof init == 'string' ? charAt$2(init, 0) === '?' ? stringSlice$1(init, 1) : init : $toString$1(init));
7350
7437
  }
7351
7438
  };
@@ -7364,7 +7451,7 @@ var Paystack = (function (exports) {
7364
7451
  iterator = getIterator(object, iteratorMethod);
7365
7452
  next = iterator.next;
7366
7453
  while (!(step = call(next, iterator)).done) {
7367
- entryIterator = getIterator(anObject(step.value));
7454
+ entryIterator = getIterator(anObject$1(step.value));
7368
7455
  entryNext = entryIterator.next;
7369
7456
  if (
7370
7457
  (first = call(entryNext, entryIterator)).done ||
@@ -7373,7 +7460,7 @@ var Paystack = (function (exports) {
7373
7460
  ) throw TypeError$3('Expected sequence with length 2');
7374
7461
  push$3(this.entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
7375
7462
  }
7376
- } else for (var key in object) if (hasOwn$1(object, key)) {
7463
+ } else for (var key in object) if (hasOwn$2(object, key)) {
7377
7464
  push$3(this.entries, { key: key, value: $toString$1(object[key]) });
7378
7465
  }
7379
7466
  },
@@ -7416,14 +7503,14 @@ var Paystack = (function (exports) {
7416
7503
  // `URLSearchParams` constructor
7417
7504
  // https://url.spec.whatwg.org/#interface-urlsearchparams
7418
7505
  var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
7419
- anInstance$1(this, URLSearchParamsPrototype);
7506
+ anInstance$3(this, URLSearchParamsPrototype);
7420
7507
  var init = arguments.length > 0 ? arguments[0] : undefined;
7421
- setInternalState$1(this, new URLSearchParamsState(init));
7508
+ setInternalState$2(this, new URLSearchParamsState(init));
7422
7509
  };
7423
7510
 
7424
7511
  var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
7425
7512
 
7426
- redefineAll(URLSearchParamsPrototype, {
7513
+ redefineAll$1(URLSearchParamsPrototype, {
7427
7514
  // `URLSearchParams.prototype.append` method
7428
7515
  // https://url.spec.whatwg.org/#dom-urlsearchparams-append
7429
7516
  append: function append(name, value) {
@@ -7441,7 +7528,7 @@ var Paystack = (function (exports) {
7441
7528
  var key = $toString$1(name);
7442
7529
  var index = 0;
7443
7530
  while (index < entries.length) {
7444
- if (entries[index].key === key) splice(entries, index, 1);
7531
+ if (entries[index].key === key) splice$1(entries, index, 1);
7445
7532
  else index++;
7446
7533
  }
7447
7534
  state.updateURL();
@@ -7497,7 +7584,7 @@ var Paystack = (function (exports) {
7497
7584
  for (; index < entries.length; index++) {
7498
7585
  entry = entries[index];
7499
7586
  if (entry.key === key) {
7500
- if (found) splice(entries, index--, 1);
7587
+ if (found) splice$1(entries, index--, 1);
7501
7588
  else {
7502
7589
  found = true;
7503
7590
  entry.value = val;
@@ -7542,27 +7629,27 @@ var Paystack = (function (exports) {
7542
7629
  }, { enumerable: true });
7543
7630
 
7544
7631
  // `URLSearchParams.prototype[@@iterator]` method
7545
- redefine$1(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
7632
+ redefine$2(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
7546
7633
 
7547
7634
  // `URLSearchParams.prototype.toString` method
7548
7635
  // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
7549
- redefine$1(URLSearchParamsPrototype, 'toString', function toString() {
7636
+ redefine$2(URLSearchParamsPrototype, 'toString', function toString() {
7550
7637
  return getInternalParamsState(this).serialize();
7551
7638
  }, { enumerable: true });
7552
7639
 
7553
- setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
7640
+ setToStringTag$2(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
7554
7641
 
7555
- $$6({ global: true, forced: !USE_NATIVE_URL$1 }, {
7642
+ $$7({ global: true, forced: !USE_NATIVE_URL$1 }, {
7556
7643
  URLSearchParams: URLSearchParamsConstructor
7557
7644
  });
7558
7645
 
7559
7646
  // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
7560
- if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
7561
- var headersHas = uncurryThis$4(HeadersPrototype.has);
7562
- var headersSet = uncurryThis$4(HeadersPrototype.set);
7647
+ if (!USE_NATIVE_URL$1 && isCallable$1(Headers)) {
7648
+ var headersHas = uncurryThis$6(HeadersPrototype.has);
7649
+ var headersSet = uncurryThis$6(HeadersPrototype.set);
7563
7650
 
7564
7651
  var wrapRequestOptions = function (init) {
7565
- if (isObject$1(init)) {
7652
+ if (isObject$3(init)) {
7566
7653
  var body = init.body;
7567
7654
  var headers;
7568
7655
  if (classof(body) === URL_SEARCH_PARAMS) {
@@ -7578,24 +7665,24 @@ var Paystack = (function (exports) {
7578
7665
  } return init;
7579
7666
  };
7580
7667
 
7581
- if (isCallable(n$Fetch)) {
7582
- $$6({ global: true, enumerable: true, forced: true }, {
7668
+ if (isCallable$1(n$Fetch)) {
7669
+ $$7({ global: true, enumerable: true, forced: true }, {
7583
7670
  fetch: function fetch(input /* , init */) {
7584
7671
  return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
7585
7672
  }
7586
7673
  });
7587
7674
  }
7588
7675
 
7589
- if (isCallable(N$Request)) {
7676
+ if (isCallable$1(N$Request)) {
7590
7677
  var RequestConstructor = function Request(input /* , init */) {
7591
- anInstance$1(this, RequestPrototype);
7678
+ anInstance$3(this, RequestPrototype);
7592
7679
  return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
7593
7680
  };
7594
7681
 
7595
7682
  RequestPrototype.constructor = RequestConstructor;
7596
7683
  RequestConstructor.prototype = RequestPrototype;
7597
7684
 
7598
- $$6({ global: true, forced: true }, {
7685
+ $$7({ global: true, forced: true }, {
7599
7686
  Request: RequestConstructor
7600
7687
  });
7601
7688
  }
@@ -7608,49 +7695,49 @@ var Paystack = (function (exports) {
7608
7695
 
7609
7696
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
7610
7697
 
7611
- var $$5 = _export;
7698
+ var $$6 = _export;
7612
7699
  var DESCRIPTORS$2 = descriptors$1;
7613
7700
  var USE_NATIVE_URL = nativeUrl;
7614
- var global$3 = global$T;
7701
+ var global$4 = global$U;
7615
7702
  var bind$3 = functionBindContext;
7616
- var uncurryThis$3 = functionUncurryThis;
7703
+ var uncurryThis$5 = functionUncurryThis;
7617
7704
  var defineProperties = objectDefineProperties.f;
7618
- var redefine = redefine$a.exports;
7619
- var anInstance = anInstance$3;
7620
- var hasOwn = hasOwnProperty_1;
7705
+ var redefine$1 = redefine$b.exports;
7706
+ var anInstance$2 = anInstance$5;
7707
+ var hasOwn$1 = hasOwnProperty_1;
7621
7708
  var assign$1 = objectAssign;
7622
7709
  var arrayFrom = arrayFrom$1;
7623
7710
  var arraySlice = arraySliceSimple;
7624
7711
  var codeAt = stringMultibyte.codeAt;
7625
7712
  var toASCII = stringPunycodeToAscii;
7626
7713
  var $toString = toString$9;
7627
- var setToStringTag = setToStringTag$5;
7714
+ var setToStringTag$1 = setToStringTag$6;
7628
7715
  var validateArgumentsLength = validateArgumentsLength$3;
7629
7716
  var URLSearchParamsModule = web_urlSearchParams;
7630
- var InternalStateModule = internalState;
7717
+ var InternalStateModule$1 = internalState;
7631
7718
 
7632
- var setInternalState = InternalStateModule.set;
7633
- var getInternalURLState = InternalStateModule.getterFor('URL');
7719
+ var setInternalState$1 = InternalStateModule$1.set;
7720
+ var getInternalURLState = InternalStateModule$1.getterFor('URL');
7634
7721
  var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
7635
7722
  var getInternalSearchParamsState = URLSearchParamsModule.getState;
7636
7723
 
7637
- var NativeURL = global$3.URL;
7638
- var TypeError$2 = global$3.TypeError;
7639
- var parseInt$1 = global$3.parseInt;
7724
+ var NativeURL = global$4.URL;
7725
+ var TypeError$2 = global$4.TypeError;
7726
+ var parseInt$1 = global$4.parseInt;
7640
7727
  var floor = Math.floor;
7641
7728
  var pow = Math.pow;
7642
- var charAt$1 = uncurryThis$3(''.charAt);
7643
- var exec$1 = uncurryThis$3(/./.exec);
7644
- var join = uncurryThis$3([].join);
7645
- var numberToString$1 = uncurryThis$3(1.0.toString);
7646
- var pop = uncurryThis$3([].pop);
7647
- var push$2 = uncurryThis$3([].push);
7648
- var replace$2 = uncurryThis$3(''.replace);
7649
- var shift = uncurryThis$3([].shift);
7650
- var split$1 = uncurryThis$3(''.split);
7651
- var stringSlice = uncurryThis$3(''.slice);
7652
- var toLowerCase = uncurryThis$3(''.toLowerCase);
7653
- var unshift = uncurryThis$3([].unshift);
7729
+ var charAt$1 = uncurryThis$5(''.charAt);
7730
+ var exec$1 = uncurryThis$5(/./.exec);
7731
+ var join = uncurryThis$5([].join);
7732
+ var numberToString$1 = uncurryThis$5(1.0.toString);
7733
+ var pop = uncurryThis$5([].pop);
7734
+ var push$2 = uncurryThis$5([].push);
7735
+ var replace$2 = uncurryThis$5(''.replace);
7736
+ var shift = uncurryThis$5([].shift);
7737
+ var split$1 = uncurryThis$5(''.split);
7738
+ var stringSlice = uncurryThis$5(''.slice);
7739
+ var toLowerCase = uncurryThis$5(''.toLowerCase);
7740
+ var unshift = uncurryThis$5([].unshift);
7654
7741
 
7655
7742
  var INVALID_AUTHORITY = 'Invalid authority';
7656
7743
  var INVALID_SCHEME = 'Invalid scheme';
@@ -7858,7 +7945,7 @@ var Paystack = (function (exports) {
7858
7945
 
7859
7946
  var percentEncode = function (chr, set) {
7860
7947
  var code = codeAt(chr, 0);
7861
- return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
7948
+ return code > 0x20 && code < 0x7F && !hasOwn$1(set, chr) ? chr : encodeURIComponent(chr);
7862
7949
  };
7863
7950
 
7864
7951
  // https://url.spec.whatwg.org/#special-scheme
@@ -7989,7 +8076,7 @@ var Paystack = (function (exports) {
7989
8076
  buffer += toLowerCase(chr);
7990
8077
  } else if (chr == ':') {
7991
8078
  if (stateOverride && (
7992
- (url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
8079
+ (url.isSpecial() != hasOwn$1(specialSchemes, buffer)) ||
7993
8080
  (buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
7994
8081
  (url.scheme == 'file' && !url.host)
7995
8082
  )) return;
@@ -8377,7 +8464,7 @@ var Paystack = (function (exports) {
8377
8464
  },
8378
8465
  // https://url.spec.whatwg.org/#is-special
8379
8466
  isSpecial: function () {
8380
- return hasOwn(specialSchemes, this.scheme);
8467
+ return hasOwn$1(specialSchemes, this.scheme);
8381
8468
  },
8382
8469
  // https://url.spec.whatwg.org/#shorten-a-urls-path
8383
8470
  shortenPath: function () {
@@ -8546,9 +8633,9 @@ var Paystack = (function (exports) {
8546
8633
  // `URL` constructor
8547
8634
  // https://url.spec.whatwg.org/#url-class
8548
8635
  var URLConstructor = function URL(url /* , base */) {
8549
- var that = anInstance(this, URLPrototype);
8636
+ var that = anInstance$2(this, URLPrototype);
8550
8637
  var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
8551
- var state = setInternalState(that, new URLState(url, false, base));
8638
+ var state = setInternalState$1(that, new URLState(url, false, base));
8552
8639
  if (!DESCRIPTORS$2) {
8553
8640
  that.href = state.serialize();
8554
8641
  that.origin = state.getOrigin();
@@ -8623,13 +8710,13 @@ var Paystack = (function (exports) {
8623
8710
 
8624
8711
  // `URL.prototype.toJSON` method
8625
8712
  // https://url.spec.whatwg.org/#dom-url-tojson
8626
- redefine(URLPrototype, 'toJSON', function toJSON() {
8713
+ redefine$1(URLPrototype, 'toJSON', function toJSON() {
8627
8714
  return getInternalURLState(this).serialize();
8628
8715
  }, { enumerable: true });
8629
8716
 
8630
8717
  // `URL.prototype.toString` method
8631
8718
  // https://url.spec.whatwg.org/#URL-stringification-behavior
8632
- redefine(URLPrototype, 'toString', function toString() {
8719
+ redefine$1(URLPrototype, 'toString', function toString() {
8633
8720
  return getInternalURLState(this).serialize();
8634
8721
  }, { enumerable: true });
8635
8722
 
@@ -8638,15 +8725,15 @@ var Paystack = (function (exports) {
8638
8725
  var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
8639
8726
  // `URL.createObjectURL` method
8640
8727
  // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
8641
- if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
8728
+ if (nativeCreateObjectURL) redefine$1(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
8642
8729
  // `URL.revokeObjectURL` method
8643
8730
  // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
8644
- if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
8731
+ if (nativeRevokeObjectURL) redefine$1(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
8645
8732
  }
8646
8733
 
8647
- setToStringTag(URLConstructor, 'URL');
8734
+ setToStringTag$1(URLConstructor, 'URL');
8648
8735
 
8649
- $$5({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$2 }, {
8736
+ $$6({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$2 }, {
8650
8737
  URL: URLConstructor
8651
8738
  });
8652
8739
 
@@ -8763,7 +8850,7 @@ var Paystack = (function (exports) {
8763
8850
  * @param {Object} val The value to test
8764
8851
  * @returns {boolean} True if value is an Object, otherwise false
8765
8852
  */
8766
- function isObject(val) {
8853
+ function isObject$2(val) {
8767
8854
  return val !== null && typeof val === 'object';
8768
8855
  }
8769
8856
 
@@ -8845,7 +8932,7 @@ var Paystack = (function (exports) {
8845
8932
  * @returns {boolean} True if value is a Stream, otherwise false
8846
8933
  */
8847
8934
  function isStream(val) {
8848
- return isObject(val) && isFunction(val.pipe);
8935
+ return isObject$2(val) && isFunction(val.pipe);
8849
8936
  }
8850
8937
 
8851
8938
  /**
@@ -9149,7 +9236,7 @@ var Paystack = (function (exports) {
9149
9236
  isArrayBufferView: isArrayBufferView,
9150
9237
  isString: isString,
9151
9238
  isNumber: isNumber,
9152
- isObject: isObject,
9239
+ isObject: isObject$2,
9153
9240
  isPlainObject: isPlainObject,
9154
9241
  isEmptyObject: isEmptyObject,
9155
9242
  isUndefined: isUndefined,
@@ -11932,13 +12019,13 @@ var Paystack = (function (exports) {
11932
12019
  stringify: stringify
11933
12020
  };
11934
12021
 
11935
- var global$2 = global$T;
12022
+ var global$3 = global$U;
11936
12023
  var aCallable = aCallable$7;
11937
12024
  var toObject = toObject$9;
11938
12025
  var IndexedObject = indexedObject;
11939
12026
  var lengthOfArrayLike = lengthOfArrayLike$8;
11940
12027
 
11941
- var TypeError$1 = global$2.TypeError;
12028
+ var TypeError$1 = global$3.TypeError;
11942
12029
 
11943
12030
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
11944
12031
  var createMethod$1 = function (IS_RIGHT) {
@@ -11976,7 +12063,7 @@ var Paystack = (function (exports) {
11976
12063
  right: createMethod$1(true)
11977
12064
  };
11978
12065
 
11979
- var $$4 = _export;
12066
+ var $$5 = _export;
11980
12067
  var $reduce = arrayReduce.left;
11981
12068
  var arrayMethodIsStrict = arrayMethodIsStrict$4;
11982
12069
  var CHROME_VERSION = engineV8Version;
@@ -11989,7 +12076,7 @@ var Paystack = (function (exports) {
11989
12076
 
11990
12077
  // `Array.prototype.reduce` method
11991
12078
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
11992
- $$4({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
12079
+ $$5({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
11993
12080
  reduce: function reduce(callbackfn /* , initialValue */) {
11994
12081
  var length = arguments.length;
11995
12082
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
@@ -12493,13 +12580,13 @@ var Paystack = (function (exports) {
12493
12580
 
12494
12581
  var DESCRIPTORS$1 = descriptors$1;
12495
12582
  var FUNCTION_NAME_EXISTS = functionName.EXISTS;
12496
- var uncurryThis$2 = functionUncurryThis;
12583
+ var uncurryThis$4 = functionUncurryThis;
12497
12584
  var defineProperty = objectDefineProperty.f;
12498
12585
 
12499
12586
  var FunctionPrototype = Function.prototype;
12500
- var functionToString = uncurryThis$2(FunctionPrototype.toString);
12587
+ var functionToString = uncurryThis$4(FunctionPrototype.toString);
12501
12588
  var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
12502
- var regExpExec = uncurryThis$2(nameRE.exec);
12589
+ var regExpExec = uncurryThis$4(nameRE.exec);
12503
12590
  var NAME = 'name';
12504
12591
 
12505
12592
  // Function instances `.name` property
@@ -17893,13 +17980,13 @@ var Paystack = (function (exports) {
17893
17980
  }
17894
17981
 
17895
17982
  var DESCRIPTORS = descriptors$1;
17896
- var uncurryThis$1 = functionUncurryThis;
17983
+ var uncurryThis$3 = functionUncurryThis;
17897
17984
  var objectKeys = objectKeys$3;
17898
17985
  var toIndexedObject = toIndexedObject$8;
17899
17986
  var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
17900
17987
 
17901
- var propertyIsEnumerable = uncurryThis$1($propertyIsEnumerable);
17902
- var push = uncurryThis$1([].push);
17988
+ var propertyIsEnumerable = uncurryThis$3($propertyIsEnumerable);
17989
+ var push = uncurryThis$3([].push);
17903
17990
 
17904
17991
  // `Object.{ entries, values }` methods implementation
17905
17992
  var createMethod = function (TO_ENTRIES) {
@@ -17929,18 +18016,18 @@ var Paystack = (function (exports) {
17929
18016
  values: createMethod(false)
17930
18017
  };
17931
18018
 
17932
- var $$3 = _export;
18019
+ var $$4 = _export;
17933
18020
  var $values = objectToArray.values;
17934
18021
 
17935
18022
  // `Object.values` method
17936
18023
  // https://tc39.es/ecma262/#sec-object.values
17937
- $$3({ target: 'Object', stat: true }, {
18024
+ $$4({ target: 'Object', stat: true }, {
17938
18025
  values: function values(O) {
17939
18026
  return $values(O);
17940
18027
  }
17941
18028
  });
17942
18029
 
17943
- var $$2 = _export;
18030
+ var $$3 = _export;
17944
18031
  var $find = arrayIteration.find;
17945
18032
  var addToUnscopables = addToUnscopables$3;
17946
18033
 
@@ -17952,7 +18039,7 @@ var Paystack = (function (exports) {
17952
18039
 
17953
18040
  // `Array.prototype.find` method
17954
18041
  // https://tc39.es/ecma262/#sec-array.prototype.find
17955
- $$2({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
18042
+ $$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
17956
18043
  find: function find(callbackfn /* , that = undefined */) {
17957
18044
  return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
17958
18045
  }
@@ -20386,6 +20473,10 @@ var Paystack = (function (exports) {
20386
20473
  }
20387
20474
  };
20388
20475
 
20476
+ // Charge statuses that leave the transaction with a Pusher channel worth listening on.
20477
+ // `awaiting_ussd_confirmation` is mid-flight, not settled, but it still carries the
20478
+ // `channel_name` the outcome will arrive on.
20479
+ var LISTENABLE_CHARGE_STATUSES = ['success', 'awaiting_ussd_confirmation'];
20389
20480
  function validate$1(phoneNumber) {
20390
20481
  return new Promise(function (resolve, reject) {
20391
20482
  var validation = PhoneNumber.validate(phoneNumber);
@@ -20425,9 +20516,9 @@ var Paystack = (function (exports) {
20425
20516
  mobileMoneyChargeAPI: function mobileMoneyChargeAPI(params) {
20426
20517
  var _this = this;
20427
20518
  return MobileMoneyAPI.charge(params).then(function (response) {
20428
- if (response.status === 'success') {
20519
+ if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
20429
20520
  _this.mobileMoney = response;
20430
- if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
20521
+ if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
20431
20522
  _this.logTokenRequest('mobile money');
20432
20523
  }
20433
20524
  }
@@ -20477,9 +20568,9 @@ var Paystack = (function (exports) {
20477
20568
  deviceFingerprint: _this3.deviceFingerprint
20478
20569
  });
20479
20570
  return MobileMoneyAPI.charge(params).then(function (response) {
20480
- if (response.status === 'success') {
20571
+ if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
20481
20572
  _this3.mobileMoney = response;
20482
- if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
20573
+ if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
20483
20574
  _this3.logTokenRequest('mobile money');
20484
20575
  }
20485
20576
  } else if (response.errors && response.errors.data && response.errors.data.status === 'awaiting_registration_token') {
@@ -20502,17 +20593,33 @@ var Paystack = (function (exports) {
20502
20593
  });
20503
20594
  },
20504
20595
  listenForMobileMoneyCharge: function listenForMobileMoneyCharge(callback) {
20505
- if (this.mobileMoney.status !== 'success') {
20596
+ var _ref2 = this.mobileMoney.data || {},
20597
+ channel = _ref2.channel,
20598
+ channelName = _ref2.channel_name;
20599
+ var listenerChannel = channel || channelName;
20600
+ if (!LISTENABLE_CHARGE_STATUSES.includes(this.mobileMoney.status) || !listenerChannel) {
20506
20601
  return Promise.reject(Error('Please start a mobile money charge with Transaction.chargeMobileMoney()'));
20507
20602
  }
20508
- var _this$mobileMoney$dat = this.mobileMoney.data,
20509
- channel = _this$mobileMoney$dat.channel,
20510
- channelName = _this$mobileMoney$dat.channel_name;
20511
20603
  var listenerOptions = {
20512
- channel: channel || channelName,
20604
+ channel: listenerChannel,
20513
20605
  paymentMethod: 'mobile_money'
20514
20606
  };
20515
20607
  return this.listenForCharge(listenerOptions, callback);
20608
+ },
20609
+ // Unlike every sibling listener, this returns a teardown function rather than a
20610
+ // promise, so it throws synchronously instead of rejecting. A caller in a
20611
+ // non-async event handler gets an uncaught throw, not an unhandled rejection.
20612
+ listenForMobileMoneyConfirmation: function listenForMobileMoneyConfirmation(callback, pusherChannel) {
20613
+ var data = this.mobileMoney.data;
20614
+ var confirmationChannel = pusherChannel || data && data.confirm_channel_name;
20615
+ if (!confirmationChannel) {
20616
+ throw new Error('Please provide the confirm_channel_name returned by Transaction.chargeMobileMoney()');
20617
+ }
20618
+ var listenerOptions = {
20619
+ channel: confirmationChannel,
20620
+ paymentMethod: 'mobile_money'
20621
+ };
20622
+ return subscribeToConfirmationEvents(listenerOptions, this, callback);
20516
20623
  }
20517
20624
  };
20518
20625
 
@@ -20673,7 +20780,7 @@ var Paystack = (function (exports) {
20673
20780
  };
20674
20781
 
20675
20782
  var PROPER_FUNCTION_NAME = functionName.PROPER;
20676
- var fails$1 = fails$v;
20783
+ var fails$2 = fails$x;
20677
20784
  var whitespaces = whitespaces$3;
20678
20785
 
20679
20786
  var non = '\u200B\u0085\u180E';
@@ -20681,20 +20788,20 @@ var Paystack = (function (exports) {
20681
20788
  // check that a method works with the correct list
20682
20789
  // of whitespaces and has a correct name
20683
20790
  var stringTrimForced = function (METHOD_NAME) {
20684
- return fails$1(function () {
20791
+ return fails$2(function () {
20685
20792
  return !!whitespaces[METHOD_NAME]()
20686
20793
  || non[METHOD_NAME]() !== non
20687
20794
  || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
20688
20795
  });
20689
20796
  };
20690
20797
 
20691
- var $$1 = _export;
20798
+ var $$2 = _export;
20692
20799
  var $trim = stringTrim.trim;
20693
20800
  var forcedStringTrimMethod = stringTrimForced;
20694
20801
 
20695
20802
  // `String.prototype.trim` method
20696
20803
  // https://tc39.es/ecma262/#sec-string.prototype.trim
20697
- $$1({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
20804
+ $$2({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
20698
20805
  trim: function trim() {
20699
20806
  return $trim(this);
20700
20807
  }
@@ -20933,6 +21040,374 @@ var Paystack = (function (exports) {
20933
21040
  }
20934
21041
  };
20935
21042
 
21043
+ var $$1 = _export;
21044
+ var global$2 = global$U;
21045
+ var uncurryThis$2 = functionUncurryThis;
21046
+ var isForced = isForced_1;
21047
+ var redefine = redefine$b.exports;
21048
+ var InternalMetadataModule = internalMetadata.exports;
21049
+ var iterate$1 = iterate$3;
21050
+ var anInstance$1 = anInstance$5;
21051
+ var isCallable = isCallable$l;
21052
+ var isObject$1 = isObject$k;
21053
+ var fails$1 = fails$x;
21054
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
21055
+ var setToStringTag = setToStringTag$6;
21056
+ var inheritIfRequired = inheritIfRequired$3;
21057
+
21058
+ var collection$1 = function (CONSTRUCTOR_NAME, wrapper, common) {
21059
+ var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
21060
+ var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
21061
+ var ADDER = IS_MAP ? 'set' : 'add';
21062
+ var NativeConstructor = global$2[CONSTRUCTOR_NAME];
21063
+ var NativePrototype = NativeConstructor && NativeConstructor.prototype;
21064
+ var Constructor = NativeConstructor;
21065
+ var exported = {};
21066
+
21067
+ var fixMethod = function (KEY) {
21068
+ var uncurriedNativeMethod = uncurryThis$2(NativePrototype[KEY]);
21069
+ redefine(NativePrototype, KEY,
21070
+ KEY == 'add' ? function add(value) {
21071
+ uncurriedNativeMethod(this, value === 0 ? 0 : value);
21072
+ return this;
21073
+ } : KEY == 'delete' ? function (key) {
21074
+ return IS_WEAK && !isObject$1(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
21075
+ } : KEY == 'get' ? function get(key) {
21076
+ return IS_WEAK && !isObject$1(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
21077
+ } : KEY == 'has' ? function has(key) {
21078
+ return IS_WEAK && !isObject$1(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
21079
+ } : function set(key, value) {
21080
+ uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
21081
+ return this;
21082
+ }
21083
+ );
21084
+ };
21085
+
21086
+ var REPLACE = isForced(
21087
+ CONSTRUCTOR_NAME,
21088
+ !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$1(function () {
21089
+ new NativeConstructor().entries().next();
21090
+ }))
21091
+ );
21092
+
21093
+ if (REPLACE) {
21094
+ // create collection constructor
21095
+ Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
21096
+ InternalMetadataModule.enable();
21097
+ } else if (isForced(CONSTRUCTOR_NAME, true)) {
21098
+ var instance = new Constructor();
21099
+ // early implementations not supports chaining
21100
+ var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
21101
+ // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
21102
+ var THROWS_ON_PRIMITIVES = fails$1(function () { instance.has(1); });
21103
+ // most early implementations doesn't supports iterables, most modern - not close it correctly
21104
+ // eslint-disable-next-line no-new -- required for testing
21105
+ var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
21106
+ // for early implementations -0 and +0 not the same
21107
+ var BUGGY_ZERO = !IS_WEAK && fails$1(function () {
21108
+ // V8 ~ Chromium 42- fails only with 5+ elements
21109
+ var $instance = new NativeConstructor();
21110
+ var index = 5;
21111
+ while (index--) $instance[ADDER](index, index);
21112
+ return !$instance.has(-0);
21113
+ });
21114
+
21115
+ if (!ACCEPT_ITERABLES) {
21116
+ Constructor = wrapper(function (dummy, iterable) {
21117
+ anInstance$1(dummy, NativePrototype);
21118
+ var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
21119
+ if (iterable != undefined) iterate$1(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
21120
+ return that;
21121
+ });
21122
+ Constructor.prototype = NativePrototype;
21123
+ NativePrototype.constructor = Constructor;
21124
+ }
21125
+
21126
+ if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
21127
+ fixMethod('delete');
21128
+ fixMethod('has');
21129
+ IS_MAP && fixMethod('get');
21130
+ }
21131
+
21132
+ if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
21133
+
21134
+ // weak collections should not contains .clear method
21135
+ if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
21136
+ }
21137
+
21138
+ exported[CONSTRUCTOR_NAME] = Constructor;
21139
+ $$1({ global: true, forced: Constructor != NativeConstructor }, exported);
21140
+
21141
+ setToStringTag(Constructor, CONSTRUCTOR_NAME);
21142
+
21143
+ if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
21144
+
21145
+ return Constructor;
21146
+ };
21147
+
21148
+ var uncurryThis$1 = functionUncurryThis;
21149
+ var redefineAll = redefineAll$3;
21150
+ var getWeakData = internalMetadata.exports.getWeakData;
21151
+ var anObject = anObject$f;
21152
+ var isObject = isObject$k;
21153
+ var anInstance = anInstance$5;
21154
+ var iterate = iterate$3;
21155
+ var ArrayIterationModule = arrayIteration;
21156
+ var hasOwn = hasOwnProperty_1;
21157
+ var InternalStateModule = internalState;
21158
+
21159
+ var setInternalState = InternalStateModule.set;
21160
+ var internalStateGetterFor = InternalStateModule.getterFor;
21161
+ var find = ArrayIterationModule.find;
21162
+ var findIndex = ArrayIterationModule.findIndex;
21163
+ var splice = uncurryThis$1([].splice);
21164
+ var id = 0;
21165
+
21166
+ // fallback for uncaught frozen keys
21167
+ var uncaughtFrozenStore = function (store) {
21168
+ return store.frozen || (store.frozen = new UncaughtFrozenStore());
21169
+ };
21170
+
21171
+ var UncaughtFrozenStore = function () {
21172
+ this.entries = [];
21173
+ };
21174
+
21175
+ var findUncaughtFrozen = function (store, key) {
21176
+ return find(store.entries, function (it) {
21177
+ return it[0] === key;
21178
+ });
21179
+ };
21180
+
21181
+ UncaughtFrozenStore.prototype = {
21182
+ get: function (key) {
21183
+ var entry = findUncaughtFrozen(this, key);
21184
+ if (entry) return entry[1];
21185
+ },
21186
+ has: function (key) {
21187
+ return !!findUncaughtFrozen(this, key);
21188
+ },
21189
+ set: function (key, value) {
21190
+ var entry = findUncaughtFrozen(this, key);
21191
+ if (entry) entry[1] = value;
21192
+ else this.entries.push([key, value]);
21193
+ },
21194
+ 'delete': function (key) {
21195
+ var index = findIndex(this.entries, function (it) {
21196
+ return it[0] === key;
21197
+ });
21198
+ if (~index) splice(this.entries, index, 1);
21199
+ return !!~index;
21200
+ }
21201
+ };
21202
+
21203
+ var collectionWeak$1 = {
21204
+ getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
21205
+ var Constructor = wrapper(function (that, iterable) {
21206
+ anInstance(that, Prototype);
21207
+ setInternalState(that, {
21208
+ type: CONSTRUCTOR_NAME,
21209
+ id: id++,
21210
+ frozen: undefined
21211
+ });
21212
+ if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
21213
+ });
21214
+
21215
+ var Prototype = Constructor.prototype;
21216
+
21217
+ var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
21218
+
21219
+ var define = function (that, key, value) {
21220
+ var state = getInternalState(that);
21221
+ var data = getWeakData(anObject(key), true);
21222
+ if (data === true) uncaughtFrozenStore(state).set(key, value);
21223
+ else data[state.id] = value;
21224
+ return that;
21225
+ };
21226
+
21227
+ redefineAll(Prototype, {
21228
+ // `{ WeakMap, WeakSet }.prototype.delete(key)` methods
21229
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.delete
21230
+ // https://tc39.es/ecma262/#sec-weakset.prototype.delete
21231
+ 'delete': function (key) {
21232
+ var state = getInternalState(this);
21233
+ if (!isObject(key)) return false;
21234
+ var data = getWeakData(key);
21235
+ if (data === true) return uncaughtFrozenStore(state)['delete'](key);
21236
+ return data && hasOwn(data, state.id) && delete data[state.id];
21237
+ },
21238
+ // `{ WeakMap, WeakSet }.prototype.has(key)` methods
21239
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.has
21240
+ // https://tc39.es/ecma262/#sec-weakset.prototype.has
21241
+ has: function has(key) {
21242
+ var state = getInternalState(this);
21243
+ if (!isObject(key)) return false;
21244
+ var data = getWeakData(key);
21245
+ if (data === true) return uncaughtFrozenStore(state).has(key);
21246
+ return data && hasOwn(data, state.id);
21247
+ }
21248
+ });
21249
+
21250
+ redefineAll(Prototype, IS_MAP ? {
21251
+ // `WeakMap.prototype.get(key)` method
21252
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.get
21253
+ get: function get(key) {
21254
+ var state = getInternalState(this);
21255
+ if (isObject(key)) {
21256
+ var data = getWeakData(key);
21257
+ if (data === true) return uncaughtFrozenStore(state).get(key);
21258
+ return data ? data[state.id] : undefined;
21259
+ }
21260
+ },
21261
+ // `WeakMap.prototype.set(key, value)` method
21262
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.set
21263
+ set: function set(key, value) {
21264
+ return define(this, key, value);
21265
+ }
21266
+ } : {
21267
+ // `WeakSet.prototype.add(value)` method
21268
+ // https://tc39.es/ecma262/#sec-weakset.prototype.add
21269
+ add: function add(value) {
21270
+ return define(this, value, true);
21271
+ }
21272
+ });
21273
+
21274
+ return Constructor;
21275
+ }
21276
+ };
21277
+
21278
+ var collection = collection$1;
21279
+ var collectionWeak = collectionWeak$1;
21280
+
21281
+ // `WeakSet` constructor
21282
+ // https://tc39.es/ecma262/#sec-weakset-constructor
21283
+ collection('WeakSet', function (init) {
21284
+ return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };
21285
+ }, collectionWeak);
21286
+
21287
+ // The server refuses a charge with a 4xx carrying the merchant-safe reason, which axios rejects
21288
+ // on. Parse it so the reason reaches the customer. Charge-only: a refusal here means no order was
21289
+ // created, whereas a transport failure on the status poll says nothing about the payment.
21290
+ var parseChargeRefusal = function parseChargeRefusal(error) {
21291
+ if (!error.response) throw error;
21292
+ return ChargeResponses.parse(error.response.data);
21293
+ };
21294
+ var PayflexAPI = {
21295
+ charge: function charge(_ref) {
21296
+ var accessCode = _ref.accessCode,
21297
+ publicKey = _ref.publicKey,
21298
+ deviceFingerprint = _ref.deviceFingerprint,
21299
+ checkoutMode = _ref.checkoutMode,
21300
+ successUrl = _ref.successUrl,
21301
+ cancelUrl = _ref.cancelUrl;
21302
+ var url = new URL('transaction/charge', configToUse.paystackApiUrl).toString();
21303
+ var language = getLanguage();
21304
+ var headers = _objectSpread2({
21305
+ Authorization: "Bearer ".concat(publicKey)
21306
+ }, language && {
21307
+ 'Accept-Language': language
21308
+ });
21309
+ var params = _objectSpread2(_objectSpread2({
21310
+ access_code: accessCode
21311
+ }, deviceFingerprint && {
21312
+ device_id: deviceFingerprint
21313
+ }), {}, {
21314
+ payflex: _objectSpread2(_objectSpread2(_objectSpread2({}, checkoutMode && {
21315
+ checkout_mode: checkoutMode
21316
+ }), successUrl && {
21317
+ success_url: successUrl
21318
+ }), cancelUrl && {
21319
+ cancel_url: cancelUrl
21320
+ })
21321
+ });
21322
+ return axiosInstance.post(url, params, {
21323
+ headers: headers
21324
+ }).then(function (response) {
21325
+ return ChargeResponses.parse(response.data);
21326
+ }).catch(parseChargeRefusal);
21327
+ },
21328
+ // Deliberately has no error branch. Only a 2xx body is an answer about the payment; a 404, a
21329
+ // proxy 5xx or an expired key is the poll failing to reach a verdict, and resolving those to
21330
+ // `failed` would have checkout conclude an outcome the server never gave it.
21331
+ requery: function requery(_ref2) {
21332
+ var transactionReference = _ref2.transactionReference,
21333
+ publicKey = _ref2.publicKey;
21334
+ var url = new URL("payflex/requery/".concat(encodeURIComponent(transactionReference)), configToUse.paystackApiUrl).toString();
21335
+ var language = getLanguage();
21336
+ var headers = _objectSpread2({
21337
+ Authorization: "Bearer ".concat(publicKey)
21338
+ }, language && {
21339
+ 'Accept-Language': language
21340
+ });
21341
+ return axiosInstance.get(url, {
21342
+ headers: headers
21343
+ }).then(function (response) {
21344
+ return ChargeResponses.parse(response.data);
21345
+ });
21346
+ }
21347
+ };
21348
+
21349
+ // eslint-disable-next-line import/prefer-default-export
21350
+ var PAYFLEX_CHANNEL = 'payflex';
21351
+
21352
+ // Checkout may never conclude failure on a timer, so the poll runs long, and saveLog() re-POSTs the
21353
+ // whole history on every entry. One pending entry per run of non-terminal polls; a terminal answer
21354
+ // clears it so a retried hand-off logs its own.
21355
+ var pendingLogged = new WeakSet();
21356
+ var PayflexCharge = {
21357
+ chargePayflex: function chargePayflex() {
21358
+ var _this = this;
21359
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
21360
+ checkoutMode = _ref.checkoutMode,
21361
+ successUrl = _ref.successUrl,
21362
+ cancelUrl = _ref.cancelUrl;
21363
+ this.logAttempt(PAYFLEX_CHANNEL);
21364
+ if (checkoutMode) {
21365
+ this.logPayflexPresentationMode(checkoutMode);
21366
+ }
21367
+ return PayflexAPI.charge({
21368
+ accessCode: this.accessCode,
21369
+ publicKey: this.merchant.key,
21370
+ deviceFingerprint: this.deviceFingerprint,
21371
+ checkoutMode: checkoutMode,
21372
+ successUrl: successUrl,
21373
+ cancelUrl: cancelUrl
21374
+ }).then(function (response) {
21375
+ var usedMode = response.data && response.data.checkout_mode;
21376
+ if (checkoutMode && usedMode && usedMode !== checkoutMode) {
21377
+ _this.logPayflexPresentationModeMismatch({
21378
+ requested: checkoutMode,
21379
+ used: usedMode
21380
+ });
21381
+ }
21382
+ _this.logAPIResponse(response, PAYFLEX_CHANNEL);
21383
+ return response;
21384
+ });
21385
+ },
21386
+ requeryPayflex: function requeryPayflex() {
21387
+ var _this2 = this;
21388
+ return PayflexAPI.requery({
21389
+ transactionReference: this.reference,
21390
+ publicKey: this.merchant.key
21391
+ }).then(function (response) {
21392
+ if (response.status !== 'pending') {
21393
+ pendingLogged.delete(_this2);
21394
+ _this2.logAPIResponse(response, PAYFLEX_CHANNEL);
21395
+ } else if (!pendingLogged.has(_this2)) {
21396
+ pendingLogged.add(_this2);
21397
+ _this2.logAPIResponse(response, PAYFLEX_CHANNEL);
21398
+ }
21399
+ return response;
21400
+ });
21401
+ },
21402
+ listenForPayflexCharge: function listenForPayflexCharge(callback) {
21403
+ var listenerOptions = {
21404
+ paymentMethod: PAYFLEX_CHANNEL,
21405
+ channel: "PAYFLEX_".concat(this.id)
21406
+ };
21407
+ return this.listenForCharge(listenerOptions, callback);
21408
+ }
21409
+ };
21410
+
20936
21411
  var ChargeFunctions = {
20937
21412
  get: function get(channel) {
20938
21413
  var chargeFunctions = {
@@ -20950,7 +21425,8 @@ var Paystack = (function (exports) {
20950
21425
  paypal: PayPalCharge,
20951
21426
  capitec_pay: CapitecPayCharge,
20952
21427
  union_pay: ChinaUnionPayCharge,
20953
- instalments: InstalmentsCharge
21428
+ instalments: InstalmentsCharge,
21429
+ payflex: PayflexCharge
20954
21430
  };
20955
21431
  return chargeFunctions[channel];
20956
21432
  }
@@ -20994,11 +21470,11 @@ var Paystack = (function (exports) {
20994
21470
  };
20995
21471
 
20996
21472
  var $ = _export;
20997
- var global$1 = global$T;
21473
+ var global$1 = global$U;
20998
21474
  var getBuiltIn = getBuiltIn$a;
20999
21475
  var apply = functionApply;
21000
21476
  var uncurryThis = functionUncurryThis;
21001
- var fails = fails$v;
21477
+ var fails = fails$x;
21002
21478
 
21003
21479
  var Array$1 = global$1.Array;
21004
21480
  var $stringify = getBuiltIn('JSON', 'stringify');
@@ -21163,7 +21639,36 @@ var Paystack = (function (exports) {
21163
21639
  }
21164
21640
  };
21165
21641
 
21166
- var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2({}, CapitecPayAnalytics), {}, {
21642
+ var PayflexAnalytics = {
21643
+ logPayflexPresentationMode: function logPayflexPresentationMode(checkoutMode) {
21644
+ return this.logHistoryEntry({
21645
+ type: 'action',
21646
+ message: "Opening Payflex as: ".concat(checkoutMode),
21647
+ channel: PAYFLEX_CHANNEL,
21648
+ time: this.getTimeSpent()
21649
+ });
21650
+ },
21651
+ logPayflexPresentationModeMismatch: function logPayflexPresentationModeMismatch(_ref) {
21652
+ var requested = _ref.requested,
21653
+ used = _ref.used;
21654
+ return this.logHistoryEntry({
21655
+ type: 'action',
21656
+ message: "Payflex opened as ".concat(used, " after requesting ").concat(requested),
21657
+ channel: PAYFLEX_CHANNEL,
21658
+ time: this.getTimeSpent()
21659
+ });
21660
+ },
21661
+ logPayflexStatusRecheck: function logPayflexStatusRecheck() {
21662
+ return this.logHistoryEntry({
21663
+ type: 'action',
21664
+ message: 'Selected check payment status again',
21665
+ channel: PAYFLEX_CHANNEL,
21666
+ time: this.getTimeSpent()
21667
+ });
21668
+ }
21669
+ };
21670
+
21671
+ var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2(_objectSpread2({}, CapitecPayAnalytics), PayflexAnalytics), {}, {
21167
21672
  initializeLog: function initializeLog(log) {
21168
21673
  this.log = AnalyticsUtils.initializeLog(log);
21169
21674
  },