@coinflowlabs/react-native 3.2.0 → 3.4.0

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/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Coinflow React Native
2
2
 
3
3
  ## Withdraw Usage
4
+
4
5
  ```
5
6
  import {useWallet} from '@solana/wallet-adapter-react';
6
7
  const wallet = useWallet();
@@ -10,23 +11,25 @@ const connection = useConnection();
10
11
  ```
11
12
 
12
13
  Props:
13
- * `wallet`: The Solana Wallet Adapter Wallet
14
- * `merchantId`: Your Merchant ID (Contact Coinflow support for this)
15
- * `connection`: Solana Connection
16
- * `env` (optional): This defaults to `prod`
17
- - For testing set to `staging`
18
- * `onSuccess` (optional): function to run when the withdrawal process is successful
19
- * `lockAmount` (optional): Whether to let the user select the amount to withdraw or to disable the input
20
- * `amount` (optional): The amount to withdraw - required if `lockAmount=true`
21
- * `tokens` (optional): Define a list to filter the available tokens
22
- * `lockDefaultToken` (optional): Only allow the default token to be used
23
- * `email` (optional): Set the default email to be used in entry fields
24
- * `bankAccountLinkRedirect` (optional): The URL to be used for bank account setup
25
- * `additionalWallets` (optional): Define additional wallets to assign to the user
26
- * `usePermit` (optional): Pass as false to disable permit message signing for EVM and use approve transactions
27
- * `transactionSigner` (optional): Public Key of the wallet which will actually execute the withdrawal transaction. Must be associated with the same withdrawer as the main wallet.
14
+
15
+ - `wallet`: The Solana Wallet Adapter Wallet
16
+ - `merchantId`: Your Merchant ID (Contact Coinflow support for this)
17
+ - `connection`: Solana Connection
18
+ - `env` (optional): This defaults to `prod`
19
+ - For testing set to `staging`
20
+ - `onSuccess` (optional): function to run when the withdrawal process is successful
21
+ - `lockAmount` (optional): Whether to let the user select the amount to withdraw or to disable the input
22
+ - `amount` (optional): The amount to withdraw - required if `lockAmount=true`
23
+ - `tokens` (optional): Define a list to filter the available tokens
24
+ - `lockDefaultToken` (optional): Only allow the default token to be used
25
+ - `email` (optional): Set the default email to be used in entry fields
26
+ - `bankAccountLinkRedirect` (optional): The URL to be used for bank account setup
27
+ - `additionalWallets` (optional): Define additional wallets to assign to the user
28
+ - `usePermit` (optional): Pass as false to disable permit message signing for EVM and use approve transactions
29
+ - `transactionSigner` (optional): Public Key of the wallet which will actually execute the withdrawal transaction. Must be associated with the same withdrawer as the main wallet.
28
30
 
29
31
  ## Purchase Usage
32
+
30
33
  ```
31
34
  import {useWallet} from '@solana/wallet-adapter-react';
32
35
  const wallet = useWallet();
@@ -36,30 +39,41 @@ const connection = useConnection();
36
39
  ```
37
40
 
38
41
  Props:
39
- * `wallet`: The Solana Wallet Adapter Wallet
40
- * `merchantId`: Your Merchant ID (Contact Coinflow support for this)
41
- * `connection`: Solana Connection
42
- * `env` (optional): This defaults to `prod`
42
+
43
+ - `wallet`: The Solana Wallet Adapter Wallet
44
+ - `merchantId`: Your Merchant ID (Contact Coinflow support for this)
45
+ - `connection`: Solana Connection
46
+ - `env` (optional): This defaults to `prod`
43
47
  - For testing set to `staging`
44
- * `onSuccess` (optional): function to run when the purchase process is successful
45
- * `transaction` (optional): transaction for the user to run which redeems their credits with your smart contract. Create this transaction just like you would for a normal user who has USDC in their account.
46
- * `partialSigners` (optional): Keypairs of Partial Signers to sign the transaction with, this is necessary when initializing new accounts as the new account Keypair must sign the transaction.
47
- * `debugTx` (optional): Setting this to `true` will sign the transaction with the wallet, and send the transaction with no preflight checks allowing for easier debug of any issues.
48
- * `token` (optional): The token to use for the purchase. Defaults to USDC. Currently only supported for the Solana Blockchain.
49
- * `planCode` (optional): When a subscription is being purchased, the code of the subscription plan.
50
- * `settlementType` (optional): The settlement method to use for the proceeds of a purchase. (Credits, USDC, or Bank)
51
- * `amount` (optional): Fix the amount of purchase
52
- * `webhookInfo` (optional): Product or transaction based information that you want transmitted when you receive webhooks regarding the purchase
53
- * `email` (optional): Set the default email to use in email entry fields
54
- * `chargebackProtectionData` (optional):
55
- * `disableApplePay` (optional): Ability to disable Apple Pay
56
- * `disableGooglePay` (optional): Ability to disable Google Pay
57
- * `customerInfo` (optional): Additional information about the customer
58
- * `rent` (optional, Solana only): Specify the blockchain rent amount to add to the total
59
- * `nativeSolToConvert` (optional, Solana only): Specify the amount of native SOL to convert wSOL for the purchase
48
+ - `onSuccess` (optional): function to run when the purchase process is successful
49
+ - `transaction` (optional): transaction for the user to run which redeems their credits with your smart contract. Create this transaction just like you would for a normal user who has USDC in their account.
50
+ - `partialSigners` (optional): Keypairs of Partial Signers to sign the transaction with, this is necessary when initializing new accounts as the new account Keypair must sign the transaction.
51
+ - `debugTx` (optional): Setting this to `true` will sign the transaction with the wallet, and send the transaction with no preflight checks allowing for easier debug of any issues.
52
+ - `token` (optional): The token to use for the purchase. Defaults to USDC. Currently only supported for the Solana Blockchain.
53
+ - `planCode` (optional): When a subscription is being purchased, the code of the subscription plan.
54
+ - `settlementType` (optional): The settlement method to use for the proceeds of a purchase. (Credits, USDC, or Bank)
55
+ - `amount` (optional): Fix the amount of purchase
56
+ - `webhookInfo` (optional): Product or transaction based information that you want transmitted when you receive webhooks regarding the purchase
57
+ - `email` (optional): Set the default email to use in email entry fields
58
+ - `chargebackProtectionData` (optional):
59
+ - `disableApplePay` (optional): Ability to disable Apple Pay
60
+ - `disableGooglePay` (optional): Ability to disable Google Pay
61
+ - `customerInfo` (optional): Additional information about the customer
62
+ - `rent` (optional, Solana only): Specify the blockchain rent amount to add to the total
63
+ - `nativeSolToConvert` (optional, Solana only): Specify the amount of native SOL to convert wSOL for the purchase
64
+ - `jwtToken` (optional): A JWT token which encodes verified checkout parameters to prevent spoofing of arguments.
65
+ - `supportEmail` (optional): Your business support email address to use for support inquiries
60
66
 
61
67
  # Changelog
62
68
 
69
+ ## 3.3.0
70
+
71
+ - Added sessionKey authentication mechanism to `CoinflowPurchase`
72
+
73
+ ## 3.2.1
74
+
75
+ - CoinflowPurchaseV2 component added for a modernized purchase flow
76
+
63
77
  ## 3.2.0
64
78
 
65
79
  - Added arbitrum blockchain support
@@ -92,7 +106,8 @@ Props:
92
106
  ## 2.1.11
93
107
 
94
108
  - Added `theme` props to Coinflow components for easy color control
95
- -
109
+ -
110
+
96
111
  ## 2.1.10
97
112
 
98
113
  - Added `orderId` option for reservoir items
@@ -137,23 +152,23 @@ Props:
137
152
 
138
153
  # 1.2.8
139
154
 
140
- * Fix external linking for Coinflow URLs
155
+ - Fix external linking for Coinflow URLs
141
156
 
142
157
  # 1.2.7
143
158
 
144
- * Fix external linking for specified URLs
159
+ - Fix external linking for specified URLs
145
160
 
146
161
  # 1.2.6
147
162
 
148
- * Added deviceId and chargebackProtectionData to CoinflowPurchase
163
+ - Added deviceId and chargebackProtectionData to CoinflowPurchase
149
164
 
150
165
  # 1.2.5
151
166
 
152
- * Fixing Webhook Info
167
+ - Fixing Webhook Info
153
168
 
154
169
  # 1.2.3
155
170
 
156
- * `getFeePayer` - Return the `PublicKey` of the Coinflow Fee Payer
171
+ - `getFeePayer` - Return the `PublicKey` of the Coinflow Fee Payer
157
172
 
158
173
  # Changelog
159
174
 
@@ -174,4 +189,5 @@ Props:
174
189
  - Added the ability to sign transactions instead of sign messages
175
190
 
176
191
  # 0.1.0
177
- Genesis 1:1
192
+
193
+ Genesis 1:1
@@ -2,14 +2,18 @@ import { __assign } from "tslib";
2
2
  import React, { useMemo } from 'react';
3
3
  import { CoinflowWebView, } from './CoinflowWebView';
4
4
  import { getWalletPubkey, getHandlers, CoinflowUtils, } from './common';
5
- export function CoinflowPurchase(purchaseProps) {
5
+ function useCoinflowPurchase(purchaseProps, version) {
6
6
  var webviewProps = useMemo(function () {
7
7
  var walletPubkey = getWalletPubkey(purchaseProps);
8
- return __assign(__assign({}, purchaseProps), { walletPubkey: walletPubkey, route: "/purchase/".concat(purchaseProps.merchantId), transaction: CoinflowUtils.getTransaction(purchaseProps), onLoad: purchaseProps.onLoad });
9
- }, [purchaseProps]);
8
+ return __assign(__assign({}, purchaseProps), { walletPubkey: walletPubkey, route: "/purchase".concat(version, "/").concat(purchaseProps.merchantId), transaction: CoinflowUtils.getTransaction(purchaseProps), onLoad: purchaseProps.onLoad });
9
+ }, [purchaseProps, version]);
10
10
  var messageHandlers = useMemo(function () {
11
11
  return __assign(__assign({}, getHandlers(purchaseProps)), { handleHeightChange: purchaseProps.handleHeightChange });
12
12
  }, [purchaseProps]);
13
+ return { webviewProps: webviewProps, messageHandlers: messageHandlers };
14
+ }
15
+ export function CoinflowPurchase(purchaseProps) {
16
+ var _a = useCoinflowPurchase(purchaseProps, '-v2'), webviewProps = _a.webviewProps, messageHandlers = _a.messageHandlers;
13
17
  return React.createElement(CoinflowWebView, __assign({}, webviewProps, messageHandlers));
14
18
  }
15
19
  //# sourceMappingURL=CoinflowPurchase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CoinflowPurchase.js","sourceRoot":"","sources":["../src/CoinflowPurchase.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EACL,eAAe,GAIhB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,eAAe,EACf,WAAW,EAEX,aAAa,GACd,MAAM,UAAU,CAAC;AAElB,MAAM,UAAU,gBAAgB,CAC9B,aAA8D;IAE9D,IAAM,YAAY,GAAG,OAAO,CAAuB;QACjD,IAAM,YAAY,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;QACpD,6BACK,aAAa,KAChB,YAAY,cAAA,EACZ,KAAK,EAAE,oBAAa,aAAa,CAAC,UAAU,CAAE,EAC9C,WAAW,EAAE,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,EACxD,MAAM,EAAE,aAAa,CAAC,MAAM,IAC5B;IACJ,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,IAAM,eAAe,GAAG,OAAO,CAAwB;QACrD,6BACK,WAAW,CAAC,aAAa,CAAC,KAC7B,kBAAkB,EAAE,aAAa,CAAC,kBAAkB,IACpD;IACJ,CAAC,EAAE,CAAC,aAAa,CAA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- import { CoinflowPurchaseProps, OnSuccessMethod } from './CoinflowTypes';
1
+ import { CoinflowPurchaseProps, CoinflowSessionKeyPurchaseProps, OnSuccessMethod } from './CoinflowTypes';
2
2
  export type WalletCall = {
3
3
  method: IFrameMessageMethods;
4
4
  data: string;
@@ -23,9 +23,10 @@ declare enum IFrameMessageMethods {
23
23
  SignTransaction = "signTransaction",
24
24
  SendTransaction = "sendTransaction",
25
25
  HeightChange = "heightChange",
26
- Success = "success"
26
+ Success = "success",
27
+ Load = "load"
27
28
  }
28
- export declare function getWalletPubkey({ wallet, }: Pick<CoinflowPurchaseProps, 'wallet'>): string | null | undefined;
29
+ export declare function getWalletPubkey(input: Pick<CoinflowPurchaseProps, 'wallet'> | Pick<CoinflowSessionKeyPurchaseProps, 'sessionKey'>): string | null | undefined;
29
30
  export declare function handleIFrameMessage(rawMessage: string, handlers: IFrameMessageHandlers): Promise<string> | void;
30
31
  export declare function getHandlers(props: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain' | 'onSuccess'>): Omit<IFrameMessageHandlers, 'handleHeightChange'>;
31
32
  export {};
@@ -8,17 +8,20 @@ var IFrameMessageMethods;
8
8
  IFrameMessageMethods["SendTransaction"] = "sendTransaction";
9
9
  IFrameMessageMethods["HeightChange"] = "heightChange";
10
10
  IFrameMessageMethods["Success"] = "success";
11
+ IFrameMessageMethods["Load"] = "load";
11
12
  })(IFrameMessageMethods || (IFrameMessageMethods = {}));
12
- export function getWalletPubkey(_a) {
13
- var wallet = _a.wallet;
14
- if ('publicKey' in wallet) {
15
- return wallet.publicKey.toString();
16
- }
17
- if ('address' in wallet) {
18
- return wallet.address;
19
- }
20
- if ('accountId' in wallet) {
21
- return wallet.accountId;
13
+ export function getWalletPubkey(input) {
14
+ if ('wallet' in input && input.wallet) {
15
+ var wallet = input.wallet;
16
+ if ('publicKey' in wallet) {
17
+ return wallet.publicKey.toString();
18
+ }
19
+ if ('address' in wallet) {
20
+ return wallet.address;
21
+ }
22
+ if ('accountId' in wallet) {
23
+ return wallet.accountId;
24
+ }
22
25
  }
23
26
  return null;
24
27
  }
@@ -58,6 +61,20 @@ export function handleIFrameMessage(rawMessage, handlers) {
58
61
  console.warn("Didn't expect to get here, handleIFrameMessage method:".concat(method, " is not one of ").concat(Object.values(IFrameMessageMethods)));
59
62
  }
60
63
  export function getHandlers(props) {
64
+ if (!props.blockchain) {
65
+ return {
66
+ handleSendTransaction: function () {
67
+ throw new Error('handleSendTransaction Not Implemented for sessionKey');
68
+ },
69
+ handleSignMessage: function () {
70
+ throw new Error('handleSendTransaction Not Implemented for sessionKey');
71
+ },
72
+ handleSignTransaction: function () {
73
+ throw new Error('handleSendTransaction Not Implemented for sessionKey');
74
+ },
75
+ onSuccess: props.onSuccess,
76
+ };
77
+ }
61
78
  return CoinflowUtils.byBlockchain(props.blockchain, {
62
79
  solana: function () { return getSolanaWalletHandlers(props); },
63
80
  near: function () { return getNearWalletHandlers(props); },
@@ -65,6 +82,7 @@ export function getHandlers(props) {
65
82
  polygon: function () { return getEvmWalletHandlers(props); },
66
83
  base: function () { return getEvmWalletHandlers(props); },
67
84
  arbitrum: function () { return getEvmWalletHandlers(props); },
85
+ user: function () { return getIdWalletHandlers(props); },
68
86
  })();
69
87
  }
70
88
  function getSolanaWalletHandlers(_a) {
@@ -186,4 +204,16 @@ function getEvmWalletHandlers(_a) {
186
204
  onSuccess: onSuccess,
187
205
  };
188
206
  }
207
+ function getIdWalletHandlers(_a) {
208
+ var _this = this;
209
+ var onSuccess = _a.onSuccess;
210
+ return {
211
+ handleSendTransaction: function () { return __awaiter(_this, void 0, void 0, function () {
212
+ return __generator(this, function (_a) {
213
+ return [2 /*return*/, Promise.resolve('')];
214
+ });
215
+ }); },
216
+ onSuccess: onSuccess,
217
+ };
218
+ }
189
219
  //# sourceMappingURL=CoinflowLibMessageHandlers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CoinflowLibMessageHandlers.js","sourceRoot":"","sources":["../../src/common/CoinflowLibMessageHandlers.ts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AC/B;QACD,SAAS,WAAA;KACV,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,EAGwB;IAHtD,iBAmBC;QAlBC,MAAM,YAAA,EACN,SAAS,eAAA;IAKT,IAAM,SAAS,GAAG,MAAmB,CAAC;IACtC,OAAO;QACL,qBAAqB,EAAE,UAAO,WAAmB;;;;;wBACzC,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;wBACtD,qBAAM,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EAAA;;wBAA3C,IAAI,GAAI,CAAA,SAAmC,CAAA,KAAvC;wBACX,sBAAO,IAAI,EAAC;;;aACb;QACD,iBAAiB,EAAE,UAAO,OAAe;;gBACvC,sBAAO,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,EAAC;;aACvC;QACD,SAAS,WAAA;KACV,CAAC;AACJ,CAAC;AAED,SAAS,mBAAmB,CAAC,EAEc;IAF3C,iBAYC;QAXC,SAAS,eAAA;IAKT,OAAO;QACL,qBAAqB,EAAE;;gBACrB,sBAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAC;;aAC5B;QACD,SAAS,WAAA;KACV,CAAC;AACJ,CAAC"}
@@ -34,13 +34,13 @@ export interface CustomerInfo {
34
34
  lng?: string;
35
35
  }
36
36
  /** Coinflow Types **/
37
- export type CoinflowBlockchain = 'solana' | 'near' | 'eth' | 'polygon' | 'base' | 'arbitrum';
37
+ export type CoinflowBlockchain = 'solana' | 'near' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'user';
38
38
  export type CoinflowEnvs = 'prod' | 'staging' | 'staging-live' | 'sandbox' | 'local';
39
39
  export interface CoinflowTypes {
40
40
  merchantId: string;
41
41
  env?: CoinflowEnvs;
42
42
  loaderBackground?: string;
43
- blockchain: CoinflowBlockchain;
43
+ blockchain?: CoinflowBlockchain | undefined;
44
44
  handleHeightChange?: (height: string) => void;
45
45
  theme?: MerchantTheme;
46
46
  }
@@ -169,6 +169,10 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
169
169
  authOnly?: boolean;
170
170
  deviceId?: string;
171
171
  jwtToken?: string;
172
+ /**
173
+ * Your company email address that the customer can contact.
174
+ */
175
+ supportEmail?: string;
172
176
  /**
173
177
  * If rendering the Coinflow component within multiple nested iframes, all ancestors in the chain must be provided as a comma-separated list.
174
178
  *
@@ -195,6 +199,11 @@ export interface CoinflowSolanaPurchaseProps extends CoinflowCommonPurchaseProps
195
199
  lamports: string | number;
196
200
  };
197
201
  }
202
+ export interface CoinflowSessionKeyPurchaseProps extends CoinflowCommonPurchaseProps {
203
+ sessionKey: string;
204
+ wallet?: undefined;
205
+ blockchain?: CoinflowBlockchain | undefined;
206
+ }
198
207
  export interface CoinflowNearPurchaseProps extends CoinflowCommonPurchaseProps {
199
208
  wallet: NearWallet;
200
209
  blockchain: 'near';
@@ -218,7 +227,7 @@ export interface CoinflowBasePurchaseProps extends CoinflowEvmPurchaseProps {
218
227
  export interface CoinflowArbitrumPurchaseProps extends CoinflowEvmPurchaseProps {
219
228
  blockchain: 'arbitrum';
220
229
  }
221
- export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowNearPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps;
230
+ export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowNearPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps;
222
231
  /** Withdraw **/
223
232
  export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
224
233
  onSuccess?: OnSuccessMethod;
@@ -307,8 +316,9 @@ export interface TokenRedeem extends CommonEvmRedeem {
307
316
  destination: string;
308
317
  }
309
318
  export type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | ReservoirRedeem | KnownTokenIdRedeem | NormalRedeem | TokenRedeem;
310
- export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'amount' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'token'> {
319
+ export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'amount' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'supportEmail'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'token'> {
311
320
  walletPubkey: string | null | undefined;
321
+ sessionKey?: string;
312
322
  route: string;
313
323
  routePrefix?: string;
314
324
  transaction?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"CoinflowTypes.js","sourceRoot":"","sources":["../../src/common/CoinflowTypes.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;IACb,+BAAa,CAAA;AACf,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAED,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;IACf,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAuND,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,2DAA6B,CAAA;IAC7B,2DAA6B,CAAA;IAC7B,qDAAuB,CAAA;AACzB,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC;AA8OD,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,yBAAa,CAAA;IACb,6BAAiB,CAAA;AACnB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB"}
1
+ {"version":3,"file":"CoinflowTypes.js","sourceRoot":"","sources":["../../src/common/CoinflowTypes.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;IACb,+BAAa,CAAA;AACf,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAED,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;IACf,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAwND,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,2DAA6B,CAAA;IAC7B,2DAA6B,CAAA;IAC7B,qDAAuB,CAAA;AACzB,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC;AA4PD,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,yBAAa,CAAA;IACb,6BAAiB,CAAA;AACnB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB"}
@@ -9,7 +9,7 @@ export declare class CoinflowUtils {
9
9
  }>;
10
10
  static getCoinflowBaseUrl(env?: CoinflowEnvs): string;
11
11
  static getCoinflowApiUrl(env?: CoinflowEnvs): string;
12
- static getCoinflowUrl({ walletPubkey, route, routePrefix, env, amount, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChange, bankAccountLinkRedirect, additionalWallets, nearDeposit, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, token, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, }: CoinflowIFrameProps): string;
12
+ static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, amount, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChange, bankAccountLinkRedirect, additionalWallets, nearDeposit, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, token, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, }: CoinflowIFrameProps): string;
13
13
  static getTransaction(props: CoinflowPurchaseProps): string | undefined;
14
14
  static byBlockchain<T>(blockchain: CoinflowBlockchain, args: {
15
15
  solana: T;
@@ -18,6 +18,7 @@ export declare class CoinflowUtils {
18
18
  polygon: T;
19
19
  base: T;
20
20
  arbitrum: T;
21
+ user: T;
21
22
  }): T;
22
23
  static getWalletFromUserId({ userId, merchantId, env, }: {
23
24
  userId: string;
@@ -64,12 +64,15 @@ var CoinflowUtils = /** @class */ (function () {
64
64
  };
65
65
  CoinflowUtils.getCoinflowUrl = function (_a) {
66
66
  var _b;
67
- var walletPubkey = _a.walletPubkey, route = _a.route, routePrefix = _a.routePrefix, env = _a.env, amount = _a.amount, transaction = _a.transaction, blockchain = _a.blockchain, webhookInfo = _a.webhookInfo, email = _a.email, loaderBackground = _a.loaderBackground, handleHeightChange = _a.handleHeightChange, bankAccountLinkRedirect = _a.bankAccountLinkRedirect, additionalWallets = _a.additionalWallets, nearDeposit = _a.nearDeposit, chargebackProtectionData = _a.chargebackProtectionData, merchantCss = _a.merchantCss, color = _a.color, rent = _a.rent, lockDefaultToken = _a.lockDefaultToken, token = _a.token, tokens = _a.tokens, planCode = _a.planCode, disableApplePay = _a.disableApplePay, disableGooglePay = _a.disableGooglePay, customerInfo = _a.customerInfo, settlementType = _a.settlementType, lockAmount = _a.lockAmount, nativeSolToConvert = _a.nativeSolToConvert, theme = _a.theme, usePermit = _a.usePermit, transactionSigner = _a.transactionSigner, authOnly = _a.authOnly, deviceId = _a.deviceId, jwtToken = _a.jwtToken, origins = _a.origins, threeDsChallengePreference = _a.threeDsChallengePreference;
67
+ var walletPubkey = _a.walletPubkey, sessionKey = _a.sessionKey, route = _a.route, routePrefix = _a.routePrefix, env = _a.env, amount = _a.amount, transaction = _a.transaction, _c = _a.blockchain, blockchain = _c === void 0 ? 'solana' : _c, webhookInfo = _a.webhookInfo, email = _a.email, loaderBackground = _a.loaderBackground, handleHeightChange = _a.handleHeightChange, bankAccountLinkRedirect = _a.bankAccountLinkRedirect, additionalWallets = _a.additionalWallets, nearDeposit = _a.nearDeposit, chargebackProtectionData = _a.chargebackProtectionData, merchantCss = _a.merchantCss, color = _a.color, rent = _a.rent, lockDefaultToken = _a.lockDefaultToken, token = _a.token, tokens = _a.tokens, planCode = _a.planCode, disableApplePay = _a.disableApplePay, disableGooglePay = _a.disableGooglePay, customerInfo = _a.customerInfo, settlementType = _a.settlementType, lockAmount = _a.lockAmount, nativeSolToConvert = _a.nativeSolToConvert, theme = _a.theme, usePermit = _a.usePermit, transactionSigner = _a.transactionSigner, authOnly = _a.authOnly, deviceId = _a.deviceId, jwtToken = _a.jwtToken, origins = _a.origins, threeDsChallengePreference = _a.threeDsChallengePreference, supportEmail = _a.supportEmail;
68
68
  var prefix = routePrefix
69
69
  ? "/".concat(routePrefix, "/").concat(blockchain)
70
70
  : "/".concat(blockchain);
71
71
  var url = new URL(prefix + route, CoinflowUtils.getCoinflowBaseUrl(env));
72
- url.searchParams.append('pubkey', walletPubkey);
72
+ if (walletPubkey)
73
+ url.searchParams.append('pubkey', walletPubkey);
74
+ if (sessionKey)
75
+ url.searchParams.append('sessionKey', sessionKey);
73
76
  if (transaction) {
74
77
  url.searchParams.append('transaction', transaction);
75
78
  }
@@ -88,6 +91,8 @@ var CoinflowUtils = /** @class */ (function () {
88
91
  if (email) {
89
92
  url.searchParams.append('email', email);
90
93
  }
94
+ if (supportEmail)
95
+ url.searchParams.append('supportEmail', supportEmail);
91
96
  if (token) {
92
97
  url.searchParams.append('token', token.toString());
93
98
  }
@@ -156,6 +161,8 @@ var CoinflowUtils = /** @class */ (function () {
156
161
  return url.toString();
157
162
  };
158
163
  CoinflowUtils.getTransaction = function (props) {
164
+ if (!props.blockchain)
165
+ return undefined;
159
166
  return this.byBlockchain(props.blockchain, {
160
167
  solana: function () {
161
168
  if (!('transaction' in props))
@@ -202,6 +209,9 @@ var CoinflowUtils = /** @class */ (function () {
202
209
  var action = props.action;
203
210
  return LZString.compressToEncodedURIComponent(JSON.stringify(action));
204
211
  },
212
+ user: function () {
213
+ return undefined;
214
+ },
205
215
  })();
206
216
  };
207
217
  CoinflowUtils.byBlockchain = function (blockchain, args) {
@@ -218,6 +228,8 @@ var CoinflowUtils = /** @class */ (function () {
218
228
  return args.base;
219
229
  case 'arbitrum':
220
230
  return args.arbitrum;
231
+ case 'user':
232
+ return args.user;
221
233
  default:
222
234
  throw new Error('blockchain not supported!');
223
235
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CoinflowUtils.js","sourceRoot":"","sources":["../../src/common/CoinflowUtils.ts"],"names":[],"mappings":";AAOA,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAC9C,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,EAAC,OAAO,EAAE,WAAW,EAAuB,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B;IAIE,uBAAY,GAA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f,WAAc;;;;;gDAEd,IAAI,WAAW,YAAY,WAAW,EAAE,CAAC;oDACvC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gDAC5B,CAAC;qDAAM,CAAC;oDACN,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;gDAC9B,CAAC;gDAEK,eAAe,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;gDAC9C,OAAO,GAAG;oDACd,MAAM,EAAE,MAAM;oDACd,OAAO,EAAE;wDACP,cAAc,EAAE,kBAAkB;wDAClC,wBAAwB,EAAE,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE;wDACtD,4BAA4B,EAAE,QAAQ;qDACvC;oDACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;wDACnB,UAAU,YAAA;wDACV,iBAAiB,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC;qDAC3D,CAAC;iDACH,CAAC;gDAEkB,qBAAM,KAAK,CAC7B,eAAe,GAAG,6BAA6B,EAC/C,OAAO,CACR,CAAC,IAAI,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,IAAI,EAAE,EAAV,CAAU,CAAC,EAAA;;gDAHlB,SAAS,GAAI,CAAA,SAGK,CAAA,UAHT;gDAIhB,sBAAO,SAAS,EAAC;;;qCAClB;6BACF,EAAC;;;;KACH;IACH,oBAAC;AAAD,CAAC,AA1YD,IA0YC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinflowlabs/react-native",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "React Native Component for Coinflow",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "react-native-get-random-values": "^1.11.0",
37
37
  "bs58": "^6.0.0",
38
38
  "bn.js": "^5.2.1",
39
- "@solana/web3.js": "^1.95.3",
39
+ "@solana/web3.js": "^1.95.4",
40
40
  "lz-string": "^1.5.0"
41
41
  },
42
42
  "devDependencies": {