@paystack/checkout-js 1.52.0-beta.3 → 1.52.0-beta.5
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 +9 -10
- package/es/checkout.js +9 -10
- package/lib/checkout.js +9 -10
- package/package.json +1 -1
package/dist/checkout.js
CHANGED
|
@@ -20289,7 +20289,8 @@ var Paystack = (function (exports) {
|
|
|
20289
20289
|
channelName = _ref.channel_name,
|
|
20290
20290
|
provider = _ref.provider,
|
|
20291
20291
|
voucher = _ref.voucher,
|
|
20292
|
-
registrationToken = _ref.registrationToken
|
|
20292
|
+
registrationToken = _ref.registrationToken,
|
|
20293
|
+
otp_channels = _ref.otp_channels;
|
|
20293
20294
|
var params = {
|
|
20294
20295
|
transaction: transaction,
|
|
20295
20296
|
phone: phone,
|
|
@@ -20298,7 +20299,8 @@ var Paystack = (function (exports) {
|
|
|
20298
20299
|
channel_name: channelName,
|
|
20299
20300
|
provider: provider,
|
|
20300
20301
|
voucher: voucher,
|
|
20301
|
-
registration_token: registrationToken
|
|
20302
|
+
registration_token: registrationToken,
|
|
20303
|
+
otp_channels: otp_channels
|
|
20302
20304
|
};
|
|
20303
20305
|
var language = getLanguage();
|
|
20304
20306
|
var headers = _objectSpread2({}, language && {
|
|
@@ -20351,8 +20353,7 @@ var Paystack = (function (exports) {
|
|
|
20351
20353
|
accountNumber = payload.accountNumber,
|
|
20352
20354
|
id = payload.id,
|
|
20353
20355
|
deviceFingerprint = payload.deviceFingerprint,
|
|
20354
|
-
|
|
20355
|
-
console.log('buildMobileMoneyParams channels', channels);
|
|
20356
|
+
otp_channels = payload.otp_channels;
|
|
20356
20357
|
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
20357
20358
|
provider: provider,
|
|
20358
20359
|
registrationToken: registrationToken,
|
|
@@ -20362,8 +20363,8 @@ var Paystack = (function (exports) {
|
|
|
20362
20363
|
phone: phoneNumber
|
|
20363
20364
|
}), accountNumber && {
|
|
20364
20365
|
account: accountNumber
|
|
20365
|
-
}),
|
|
20366
|
-
|
|
20366
|
+
}), otp_channels && {
|
|
20367
|
+
otp_channels: otp_channels
|
|
20367
20368
|
}), {}, {
|
|
20368
20369
|
device: deviceFingerprint,
|
|
20369
20370
|
channel_name: "MOBILE_MONEY_".concat(id)
|
|
@@ -20413,19 +20414,17 @@ var Paystack = (function (exports) {
|
|
|
20413
20414
|
var phoneNumber = payload.phoneNumber,
|
|
20414
20415
|
provider = payload.provider,
|
|
20415
20416
|
registrationToken = payload.registrationToken,
|
|
20416
|
-
|
|
20417
|
+
otp_channels = payload.otp_channels;
|
|
20417
20418
|
return validate$1(phoneNumber).then(function () {
|
|
20418
20419
|
_this3.logMobileMoneyActions(payload);
|
|
20419
|
-
console.log('authenticateMobileMoney channels', channels);
|
|
20420
20420
|
var params = buildMobileMoneyParams({
|
|
20421
20421
|
provider: provider,
|
|
20422
20422
|
registrationToken: registrationToken,
|
|
20423
20423
|
phoneNumber: phoneNumber,
|
|
20424
|
-
|
|
20424
|
+
otp_channels: otp_channels,
|
|
20425
20425
|
id: _this3.id,
|
|
20426
20426
|
deviceFingerprint: _this3.deviceFingerprint
|
|
20427
20427
|
});
|
|
20428
|
-
console.log('authenticateMobileMoney params', params);
|
|
20429
20428
|
return MobileMoneyAPI.charge(params).then(function (response) {
|
|
20430
20429
|
if (response.status === 'success') {
|
|
20431
20430
|
_this3.mobileMoney = response;
|
package/es/checkout.js
CHANGED
|
@@ -20286,7 +20286,8 @@ var MobileMoneyAPI = {
|
|
|
20286
20286
|
channelName = _ref.channel_name,
|
|
20287
20287
|
provider = _ref.provider,
|
|
20288
20288
|
voucher = _ref.voucher,
|
|
20289
|
-
registrationToken = _ref.registrationToken
|
|
20289
|
+
registrationToken = _ref.registrationToken,
|
|
20290
|
+
otp_channels = _ref.otp_channels;
|
|
20290
20291
|
var params = {
|
|
20291
20292
|
transaction: transaction,
|
|
20292
20293
|
phone: phone,
|
|
@@ -20295,7 +20296,8 @@ var MobileMoneyAPI = {
|
|
|
20295
20296
|
channel_name: channelName,
|
|
20296
20297
|
provider: provider,
|
|
20297
20298
|
voucher: voucher,
|
|
20298
|
-
registration_token: registrationToken
|
|
20299
|
+
registration_token: registrationToken,
|
|
20300
|
+
otp_channels: otp_channels
|
|
20299
20301
|
};
|
|
20300
20302
|
var language = getLanguage();
|
|
20301
20303
|
var headers = _objectSpread2({}, language && {
|
|
@@ -20348,8 +20350,7 @@ function buildMobileMoneyParams(payload) {
|
|
|
20348
20350
|
accountNumber = payload.accountNumber,
|
|
20349
20351
|
id = payload.id,
|
|
20350
20352
|
deviceFingerprint = payload.deviceFingerprint,
|
|
20351
|
-
|
|
20352
|
-
console.log('buildMobileMoneyParams channels', channels);
|
|
20353
|
+
otp_channels = payload.otp_channels;
|
|
20353
20354
|
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
20354
20355
|
provider: provider,
|
|
20355
20356
|
registrationToken: registrationToken,
|
|
@@ -20359,8 +20360,8 @@ function buildMobileMoneyParams(payload) {
|
|
|
20359
20360
|
phone: phoneNumber
|
|
20360
20361
|
}), accountNumber && {
|
|
20361
20362
|
account: accountNumber
|
|
20362
|
-
}),
|
|
20363
|
-
|
|
20363
|
+
}), otp_channels && {
|
|
20364
|
+
otp_channels: otp_channels
|
|
20364
20365
|
}), {}, {
|
|
20365
20366
|
device: deviceFingerprint,
|
|
20366
20367
|
channel_name: "MOBILE_MONEY_".concat(id)
|
|
@@ -20410,19 +20411,17 @@ var MobileMoneyCharge = {
|
|
|
20410
20411
|
var phoneNumber = payload.phoneNumber,
|
|
20411
20412
|
provider = payload.provider,
|
|
20412
20413
|
registrationToken = payload.registrationToken,
|
|
20413
|
-
|
|
20414
|
+
otp_channels = payload.otp_channels;
|
|
20414
20415
|
return validate$1(phoneNumber).then(function () {
|
|
20415
20416
|
_this3.logMobileMoneyActions(payload);
|
|
20416
|
-
console.log('authenticateMobileMoney channels', channels);
|
|
20417
20417
|
var params = buildMobileMoneyParams({
|
|
20418
20418
|
provider: provider,
|
|
20419
20419
|
registrationToken: registrationToken,
|
|
20420
20420
|
phoneNumber: phoneNumber,
|
|
20421
|
-
|
|
20421
|
+
otp_channels: otp_channels,
|
|
20422
20422
|
id: _this3.id,
|
|
20423
20423
|
deviceFingerprint: _this3.deviceFingerprint
|
|
20424
20424
|
});
|
|
20425
|
-
console.log('authenticateMobileMoney params', params);
|
|
20426
20425
|
return MobileMoneyAPI.charge(params).then(function (response) {
|
|
20427
20426
|
if (response.status === 'success') {
|
|
20428
20427
|
_this3.mobileMoney = response;
|
package/lib/checkout.js
CHANGED
|
@@ -20290,7 +20290,8 @@ var MobileMoneyAPI = {
|
|
|
20290
20290
|
channelName = _ref.channel_name,
|
|
20291
20291
|
provider = _ref.provider,
|
|
20292
20292
|
voucher = _ref.voucher,
|
|
20293
|
-
registrationToken = _ref.registrationToken
|
|
20293
|
+
registrationToken = _ref.registrationToken,
|
|
20294
|
+
otp_channels = _ref.otp_channels;
|
|
20294
20295
|
var params = {
|
|
20295
20296
|
transaction: transaction,
|
|
20296
20297
|
phone: phone,
|
|
@@ -20299,7 +20300,8 @@ var MobileMoneyAPI = {
|
|
|
20299
20300
|
channel_name: channelName,
|
|
20300
20301
|
provider: provider,
|
|
20301
20302
|
voucher: voucher,
|
|
20302
|
-
registration_token: registrationToken
|
|
20303
|
+
registration_token: registrationToken,
|
|
20304
|
+
otp_channels: otp_channels
|
|
20303
20305
|
};
|
|
20304
20306
|
var language = getLanguage();
|
|
20305
20307
|
var headers = _objectSpread2({}, language && {
|
|
@@ -20352,8 +20354,7 @@ function buildMobileMoneyParams(payload) {
|
|
|
20352
20354
|
accountNumber = payload.accountNumber,
|
|
20353
20355
|
id = payload.id,
|
|
20354
20356
|
deviceFingerprint = payload.deviceFingerprint,
|
|
20355
|
-
|
|
20356
|
-
console.log('buildMobileMoneyParams channels', channels);
|
|
20357
|
+
otp_channels = payload.otp_channels;
|
|
20357
20358
|
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
20358
20359
|
provider: provider,
|
|
20359
20360
|
registrationToken: registrationToken,
|
|
@@ -20363,8 +20364,8 @@ function buildMobileMoneyParams(payload) {
|
|
|
20363
20364
|
phone: phoneNumber
|
|
20364
20365
|
}), accountNumber && {
|
|
20365
20366
|
account: accountNumber
|
|
20366
|
-
}),
|
|
20367
|
-
|
|
20367
|
+
}), otp_channels && {
|
|
20368
|
+
otp_channels: otp_channels
|
|
20368
20369
|
}), {}, {
|
|
20369
20370
|
device: deviceFingerprint,
|
|
20370
20371
|
channel_name: "MOBILE_MONEY_".concat(id)
|
|
@@ -20414,19 +20415,17 @@ var MobileMoneyCharge = {
|
|
|
20414
20415
|
var phoneNumber = payload.phoneNumber,
|
|
20415
20416
|
provider = payload.provider,
|
|
20416
20417
|
registrationToken = payload.registrationToken,
|
|
20417
|
-
|
|
20418
|
+
otp_channels = payload.otp_channels;
|
|
20418
20419
|
return validate$1(phoneNumber).then(function () {
|
|
20419
20420
|
_this3.logMobileMoneyActions(payload);
|
|
20420
|
-
console.log('authenticateMobileMoney channels', channels);
|
|
20421
20421
|
var params = buildMobileMoneyParams({
|
|
20422
20422
|
provider: provider,
|
|
20423
20423
|
registrationToken: registrationToken,
|
|
20424
20424
|
phoneNumber: phoneNumber,
|
|
20425
|
-
|
|
20425
|
+
otp_channels: otp_channels,
|
|
20426
20426
|
id: _this3.id,
|
|
20427
20427
|
deviceFingerprint: _this3.deviceFingerprint
|
|
20428
20428
|
});
|
|
20429
|
-
console.log('authenticateMobileMoney params', params);
|
|
20430
20429
|
return MobileMoneyAPI.charge(params).then(function (response) {
|
|
20431
20430
|
if (response.status === 'success') {
|
|
20432
20431
|
_this3.mobileMoney = response;
|