@coinflowlabs/angular 1.15.0 → 1.15.2
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.
|
@@ -581,7 +581,7 @@ class CoinflowUtils {
|
|
|
581
581
|
return 'http://localhost:5000';
|
|
582
582
|
return `https://api-${env}.coinflow.cash`;
|
|
583
583
|
}
|
|
584
|
-
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, useNativeSubtotal, presentment, transaction, blockchain = 'solana', webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, chargebackProtectionAccountType, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, amount, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked,
|
|
584
|
+
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, useNativeSubtotal, presentment, transaction, blockchain = 'solana', webhookInfo, email, loaderBackground, handleHeightChangeId, bankAccountLinkRedirect, additionalWallets, chargebackProtectionData, chargebackProtectionAccountType, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, amount, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, accountFundingTransaction, partialUsdcChecked, allowedWithdrawSpeeds, isZeroAuthorization, zeroAuthorizationConfig, userLocation, appReturnUrl, depositAmounts, ownerOverride, bridgeId, bankLinkOnly, baseUrl, }) {
|
|
585
585
|
const prefix = routePrefix
|
|
586
586
|
? `/${routePrefix}/${blockchain}`
|
|
587
587
|
: `/${blockchain}`;
|
|
@@ -664,8 +664,6 @@ class CoinflowUtils {
|
|
|
664
664
|
url.searchParams.append('color', color);
|
|
665
665
|
if (rent)
|
|
666
666
|
url.searchParams.append('rent', rent.lamports.toString());
|
|
667
|
-
if (redemptionCheck)
|
|
668
|
-
url.searchParams.append('redemptionCheck', 'true');
|
|
669
667
|
if (nativeSolToConvert)
|
|
670
668
|
url.searchParams.append('nativeSolToConvert', nativeSolToConvert.lamports.toString());
|
|
671
669
|
if (lockDefaultToken)
|
|
@@ -889,6 +887,7 @@ var IFrameMessageMethods;
|
|
|
889
887
|
IFrameMessageMethods["Loaded"] = "loaded";
|
|
890
888
|
IFrameMessageMethods["AccountLinked"] = "accountLinked";
|
|
891
889
|
IFrameMessageMethods["AccountNotLinked"] = "accountNotLinked";
|
|
890
|
+
IFrameMessageMethods["AccountLinkError"] = "accountLinkError";
|
|
892
891
|
IFrameMessageMethods["Redirect"] = "redirect";
|
|
893
892
|
IFrameMessageMethods["Overlay"] = "overlay";
|
|
894
893
|
IFrameMessageMethods["UpdateSubtotal"] = "updateSubtotal";
|
|
@@ -973,6 +972,11 @@ function handleIFrameMessage(rawMessage, handlers, handleHeightChangeId) {
|
|
|
973
972
|
return;
|
|
974
973
|
handlers.onAccountNotLinked(walletCall.info);
|
|
975
974
|
return;
|
|
975
|
+
case IFrameMessageMethods.AccountLinkError:
|
|
976
|
+
if (!handlers.onAccountLinkError)
|
|
977
|
+
return;
|
|
978
|
+
handlers.onAccountLinkError(walletCall.info);
|
|
979
|
+
return;
|
|
976
980
|
case IFrameMessageMethods.Redirect:
|
|
977
981
|
window.open(data, '_blank');
|
|
978
982
|
return;
|
|
@@ -1016,6 +1020,7 @@ function getHandlers(props) {
|
|
|
1016
1020
|
onInputValid: props.onInputValid,
|
|
1017
1021
|
onAccountLinked: props.onAccountLinked,
|
|
1018
1022
|
onAccountNotLinked: props.onAccountNotLinked,
|
|
1023
|
+
onAccountLinkError: props.onAccountLinkError,
|
|
1019
1024
|
};
|
|
1020
1025
|
}
|
|
1021
1026
|
const walletHandlers = CoinflowUtils.byBlockchain(chain, {
|
|
@@ -1081,6 +1086,7 @@ function getHandlers(props) {
|
|
|
1081
1086
|
...walletHandlers,
|
|
1082
1087
|
onAccountLinked: props.onAccountLinked,
|
|
1083
1088
|
onAccountNotLinked: props.onAccountNotLinked,
|
|
1089
|
+
onAccountLinkError: props.onAccountLinkError,
|
|
1084
1090
|
};
|
|
1085
1091
|
}
|
|
1086
1092
|
function getSolanaWalletHandlers({ wallet, onSuccess, onAuthDeclined, onInputError, onInputValid, }) {
|