google pay deprecated sdk buttons


  1. If you are adding your own implementation the following components will render the Google Pay button:
Payers with wallets
1import {CoinflowGooglePayButton} from '@coinflowlabs/react';
2
3<CoinflowGooglePayButton
4 env={'prod' | 'sandbox'}
5 wallet={{
6 publicKey: PublicKey,
7 signMessage: (message: UInt8Array) => Promise,
8 sendTransaction: (transaction: Transaction | VersionedTransaction) => Promise
9 }}
10 blockchain={'solana'}
11 merchantId={merchantId}
12 connection={connection}
13 handleHeightChange={handleHeightChange}
14 amount={amount}
15 color={'black' | 'white'}
16/>
Payers without wallets
1import {CoinflowGooglePayButton} from '@coinflowlabs/react';
2
3<CoinflowGooglePayButton
4 env={'prod' | 'sandbox'}
5 sessionKey={'USER_SESSION_KEY'} //Get from: https://docs.coinflow.cash/reference/getsessionkey
6 merchantId={merchantId}
7 handleHeightChange={handleHeightChange}
8 subtotal={{cents: 100, currency: Currency.USD}}
9 color={'black' | 'white'}
10/>