@paystack/inline-js 2.29.0-dev.2 → 2.29.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/inline.js +1 -10
- package/es/inline.js +1 -10
- package/lib/inline.js +1 -10
- package/package.json +1 -1
package/dist/inline.js
CHANGED
|
@@ -858,17 +858,9 @@ var PaystackPop = (function () {
|
|
|
858
858
|
var merchantInfo = googlePayConfig.registered_merchant_info || {};
|
|
859
859
|
return {
|
|
860
860
|
merchantId: merchantInfo.merchantId,
|
|
861
|
-
merchantName: merchantInfo.merchantName
|
|
862
|
-
merchantOrigin: merchantInfo.merchantOrigin
|
|
861
|
+
merchantName: merchantInfo.merchantName
|
|
863
862
|
};
|
|
864
863
|
};
|
|
865
|
-
var warnOnOriginMismatch = function warnOnOriginMismatch(googlePayConfig) {
|
|
866
|
-
var registeredOrigin = googlePayConfig.registered_merchant_info && googlePayConfig.registered_merchant_info.merchantOrigin;
|
|
867
|
-
var hostname = window.location.hostname;
|
|
868
|
-
if (registeredOrigin && registeredOrigin !== hostname) {
|
|
869
|
-
logWarning("Google Pay: the registered merchantOrigin (\"".concat(registeredOrigin, "\") does not match this page (\"").concat(hostname, "\"). Google may reject the payment sheet. Update the domain in Dashboard > Developers > Google Pay."));
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
864
|
var buildPaymentDataRequest = function buildPaymentDataRequest(transaction) {
|
|
873
865
|
var googlePayConfig = getGooglePayConfig(transaction);
|
|
874
866
|
var response = transaction.response;
|
|
@@ -916,7 +908,6 @@ var PaystackPop = (function () {
|
|
|
916
908
|
if (!authMethods.length || !googlePayConfig.tokenization_specification || !hasGooglePaySDKLoaded()) {
|
|
917
909
|
return Promise.resolve(null);
|
|
918
910
|
}
|
|
919
|
-
warnOnOriginMismatch(googlePayConfig);
|
|
920
911
|
var readiness = Promise.resolve().then(function () {
|
|
921
912
|
var client = getGooglePayClient(resolveGooglePayEnvironment(transaction.response));
|
|
922
913
|
return client.isReadyToPay(_objectSpread2(_objectSpread2({}, buildBaseRequest(googlePayConfig)), {}, {
|
package/es/inline.js
CHANGED
|
@@ -855,17 +855,9 @@ var buildMerchantInfo = function buildMerchantInfo(googlePayConfig) {
|
|
|
855
855
|
var merchantInfo = googlePayConfig.registered_merchant_info || {};
|
|
856
856
|
return {
|
|
857
857
|
merchantId: merchantInfo.merchantId,
|
|
858
|
-
merchantName: merchantInfo.merchantName
|
|
859
|
-
merchantOrigin: merchantInfo.merchantOrigin
|
|
858
|
+
merchantName: merchantInfo.merchantName
|
|
860
859
|
};
|
|
861
860
|
};
|
|
862
|
-
var warnOnOriginMismatch = function warnOnOriginMismatch(googlePayConfig) {
|
|
863
|
-
var registeredOrigin = googlePayConfig.registered_merchant_info && googlePayConfig.registered_merchant_info.merchantOrigin;
|
|
864
|
-
var hostname = window.location.hostname;
|
|
865
|
-
if (registeredOrigin && registeredOrigin !== hostname) {
|
|
866
|
-
logWarning("Google Pay: the registered merchantOrigin (\"".concat(registeredOrigin, "\") does not match this page (\"").concat(hostname, "\"). Google may reject the payment sheet. Update the domain in Dashboard > Developers > Google Pay."));
|
|
867
|
-
}
|
|
868
|
-
};
|
|
869
861
|
var buildPaymentDataRequest = function buildPaymentDataRequest(transaction) {
|
|
870
862
|
var googlePayConfig = getGooglePayConfig(transaction);
|
|
871
863
|
var response = transaction.response;
|
|
@@ -913,7 +905,6 @@ var canUseGooglePay = function canUseGooglePay(transaction) {
|
|
|
913
905
|
if (!authMethods.length || !googlePayConfig.tokenization_specification || !hasGooglePaySDKLoaded()) {
|
|
914
906
|
return Promise.resolve(null);
|
|
915
907
|
}
|
|
916
|
-
warnOnOriginMismatch(googlePayConfig);
|
|
917
908
|
var readiness = Promise.resolve().then(function () {
|
|
918
909
|
var client = getGooglePayClient(resolveGooglePayEnvironment(transaction.response));
|
|
919
910
|
return client.isReadyToPay(_objectSpread2(_objectSpread2({}, buildBaseRequest(googlePayConfig)), {}, {
|
package/lib/inline.js
CHANGED
|
@@ -857,17 +857,9 @@ var buildMerchantInfo = function buildMerchantInfo(googlePayConfig) {
|
|
|
857
857
|
var merchantInfo = googlePayConfig.registered_merchant_info || {};
|
|
858
858
|
return {
|
|
859
859
|
merchantId: merchantInfo.merchantId,
|
|
860
|
-
merchantName: merchantInfo.merchantName
|
|
861
|
-
merchantOrigin: merchantInfo.merchantOrigin
|
|
860
|
+
merchantName: merchantInfo.merchantName
|
|
862
861
|
};
|
|
863
862
|
};
|
|
864
|
-
var warnOnOriginMismatch = function warnOnOriginMismatch(googlePayConfig) {
|
|
865
|
-
var registeredOrigin = googlePayConfig.registered_merchant_info && googlePayConfig.registered_merchant_info.merchantOrigin;
|
|
866
|
-
var hostname = window.location.hostname;
|
|
867
|
-
if (registeredOrigin && registeredOrigin !== hostname) {
|
|
868
|
-
logWarning("Google Pay: the registered merchantOrigin (\"".concat(registeredOrigin, "\") does not match this page (\"").concat(hostname, "\"). Google may reject the payment sheet. Update the domain in Dashboard > Developers > Google Pay."));
|
|
869
|
-
}
|
|
870
|
-
};
|
|
871
863
|
var buildPaymentDataRequest = function buildPaymentDataRequest(transaction) {
|
|
872
864
|
var googlePayConfig = getGooglePayConfig(transaction);
|
|
873
865
|
var response = transaction.response;
|
|
@@ -915,7 +907,6 @@ var canUseGooglePay = function canUseGooglePay(transaction) {
|
|
|
915
907
|
if (!authMethods.length || !googlePayConfig.tokenization_specification || !hasGooglePaySDKLoaded()) {
|
|
916
908
|
return Promise.resolve(null);
|
|
917
909
|
}
|
|
918
|
-
warnOnOriginMismatch(googlePayConfig);
|
|
919
910
|
var readiness = Promise.resolve().then(function () {
|
|
920
911
|
var client = getGooglePayClient(resolveGooglePayEnvironment(transaction.response));
|
|
921
912
|
return client.isReadyToPay(_objectSpread2(_objectSpread2({}, buildBaseRequest(googlePayConfig)), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paystack/inline-js",
|
|
3
|
-
"version": "2.29.0-dev.
|
|
3
|
+
"version": "2.29.0-dev.3",
|
|
4
4
|
"description": "Client-side library to load the Paystack checkout form",
|
|
5
5
|
"packageManager": "pnpm@10.33.4+sha512.1c67b3b359b2d408119ba1ed289f34b8fc3c6873412bec6fd264fbdc82489e510fcbecb9ce9d22dae7f3b76269d8441046014bdca53b9979cd7a561ad631b800",
|
|
6
6
|
"main": "lib/inline.js",
|