Using @turnkey/sdk-react
Setting up Fiat Onramp with @turnkey/sdk-react using the<Auth/>
component is straightforward.
.initFiatOnRamp()
The response toinitFiatOnRamp({...})
contains an onRampUrl
which is used to load the Onramp Widget UI of the selected provider. The URL can be served in a popup, new tab, or an iFrame.
1
Initialize the React Provider
2
Login with a Passkey and Create a Session
3
Coinbase - Init Fiat Onramp Flow
4
MoonPay - Init Fiat Onramp Flow