3.1.1 • Published 2 days ago
@coinflowlabs/react-native v3.1.1
Coinflow React Native
Withdraw Usage
import {useWallet} from '@solana/wallet-adapter-react';
const wallet = useWallet();
const connection = useConnection();
<CoinflowWithdraw wallet={wallet} merchantId='<YOUR MERCHANT ID>' env='prod|sandbox|staging' connection={connection} />;
Props:
wallet
: The Solana Wallet Adapter WalletmerchantId
: Your Merchant ID (Contact Coinflow support for this)connection
: Solana Connectionenv
(optional): This defaults toprod
- For testing set to
staging
- For testing set to
onSuccess
(optional): function to run when the withdrawal process is successfullockAmount
(optional): Whether to let the user select the amount to withdraw or to disable the inputamount
(optional): The amount to withdraw - required iflockAmount=true
tokens
(optional): Define a list to filter the available tokenslockDefaultToken
(optional): Only allow the default token to be usedemail
(optional): Set the default email to be used in entry fieldsbankAccountLinkRedirect
(optional): The URL to be used for bank account setupsupportsVersionedTransactions
(optional): Instruct the system that versioned transactions are supportedadditionalWallets
(optional): Define additional wallets to assign to the userusePermit
(optional): Pass as false to disable permit message signing for EVM and use approve transactionstransactionSigner
(optional): Public Key of the wallet which will actually execute the withdrawal transaction. Must be associated with the same withdrawer as the main wallet.
Purchase Usage
import {useWallet} from '@solana/wallet-adapter-react';
const wallet = useWallet();
const connection = useConnection();
<CoinflowPurchase wallet={wallet} merchantId='<YOUR MERCHANT ID>' env='prod|sandbox|staging' connection={connection} />;
Props:
wallet
: The Solana Wallet Adapter WalletmerchantId
: Your Merchant ID (Contact Coinflow support for this)connection
: Solana Connectionenv
(optional): This defaults toprod
- For testing set to
staging
- For testing set to
onSuccess
(optional): function to run when the purchase process is successfultransaction
(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.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.debugTx
(optional): Setting this totrue
will sign the transaction with the wallet, and send the transaction with no preflight checks allowing for easier debug of any issues.token
(optional): The token to use for the purchase. Defaults to USDC. Currently only supported for the Solana Blockchain.planCode
(optional): When a subscription is being purchased, the code of the subscription plan.settlementType
(optional): The settlement method to use for the proceeds of a purchase. (Credits, USDC, or Bank)amount
(optional): Fix the amount of purchasewebhookInfo
(optional): Product or transaction based information that you want transmitted when you receive webhooks regarding the purchaseemail
(optional): Set the default email to use in email entry fieldschargebackProtectionData
(optional):disableApplePay
(optional): Ability to disable Apple PaydisableGooglePay
(optional): Ability to disable Google PaycustomerInfo
(optional): Additional information about the customersupportsVersionedTransactions
(optional): Instruct the system that you support versioned transactionsrent
(optional, Solana only): Specify the blockchain rent amount to add to the totalnativeSolToConvert
(optional, Solana only): Specify the amount of native SOL to convert wSOL for the purchase
3.1.0
- Added base blockchain support
- Added AuthOnly parameter to CoinflowPurchase
3.0.0
- Require
signMessage
on wallets for stronger withdraw authentication
2.1.13
- Added new ChargebackProtectionData productTypes
2.1.12
- Added
waitForHash
to EvmTransactionData
2.1.11
- Added
theme
props to Coinflow components for easy color control
2.1.10
- Added
orderId
option for reservoir items
2.1.9
- Added
nativeSolToConvert
for Solana transactions
2.1.7
- Settlement type param for settlement control
2.1.6
- Customer info param for added reporting capabilities
2.1.5
- Added disableGooglePay and disableApplePay props to CoinflowPurchase
2.1.2
- Bug fix for enhanced usage with Google Pay
2.1.0
- Added support for EVM NFT purchases
2.0.0
Breaking Changes
- Added supportsVersionedTransactions to CoinflowWithdraw allowing platforms with wallets that support versioned transactions to Withdraw non-USDC/EuroE tokens in a single transaction with better prices.
- This is enabled to true by default. If you are using a wallet that does not support versioned transactions, you must set
supportsVersionedTransactions
inCoinflowWithdraw
tofalse
.
1.3.1
- Added new property lockDefaultToken which locks the withdrawal option to the users default currency (USDC or EUROe)
1.3.0
- Added support for paying solana rent for a transaction
1.2.8
- Fix external linking for Coinflow URLs
1.2.7
- Fix external linking for specified URLs
1.2.6
- Added deviceId and chargebackProtectionData to CoinflowPurchase
1.2.5
- Fixing Webhook Info
1.2.3
getFeePayer
- Return thePublicKey
of the Coinflow Fee Payer
Changelog
1.2.4
- Added
token
prop forCoinflowPurchase
with polygon
1.2.3
- Fixing nSure redirect error
1.2.2
- Added Withdraw and Purchase history components
0.1.3
- Added the ability to sign transactions instead of sign messages
0.1.0
Genesis 1:1
3.1.1
2 days ago
3.1.0
1 month ago
3.0.0
2 months ago
2.1.13
2 months ago
2.1.12
2 months ago
2.1.11
2 months ago
2.1.9
3 months ago
2.1.10
3 months ago
2.1.8
3 months ago
2.1.7
4 months ago
2.1.6
4 months ago
2.1.6-SNAPSHOT.1
4 months ago
2.1.5
5 months ago
2.1.4
5 months ago
2.1.3
5 months ago
2.1.2
5 months ago
2.1.1
5 months ago
2.1.0
5 months ago
1.2.8
7 months ago
1.2.7
7 months ago
1.2.6
8 months ago
1.2.5
8 months ago
1.2.4
8 months ago
1.2.3
9 months ago
1.3.1
6 months ago
1.3.0
6 months ago
2.0.0
6 months ago
1.2.2
11 months ago
1.2.0
11 months ago
1.2.1
11 months ago
1.1.0
11 months ago
1.0.0
1 year ago
1.0.0-SNAPSHOT.1
1 year ago
1.0.0-SNAPSHOT.3
1 year ago
1.0.0-SNAPSHOT.2
1 year ago
1.0.0-SNAPSHOT-1
1 year ago
1.0.0-SNAPSHOT.4
1 year ago
0.2.3
1 year ago
0.2.2
1 year ago
0.2.1
1 year ago
0.2.0-sandbox2
1 year ago
0.2.0-sandbox1
1 year ago
0.2.0
1 year ago
0.1.5-sandbox1
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago