Checkout
1. Redirect or load Iframe
We should redirect or load iframe (redirect is recommended) our user to:
https://wallet.wallettwo.com/auth/login?action=checkout
action
: Use 'ramp' for this example. On interactions group you can find all what you can do.redirect_uri
: Url where user should be redirected to after success or error.type
: Onramp or offramp ramp.network_id
: ID of network to deposit rampcontract
: Symbol of contract to rampcurrency
: (optional) Slug of currency to ramppayment_method
: (optional) Slug of payment method to use on the rampamount
:(optional) Tokens to show to the usercontract_addresses
: Contract addresses to send transactions.contract_abis
: ABIs to use on the transactions.contact_methods
: Methods to call on the transactions.method_params
: Parameters for the transactions to execute
2. Process callback/event
After user has finished the auth process successfully or not he'll be redirected or event will be send containing the following information:
success
: True or falsestatus
: Status of the rampcheckout_id
: ID of the checkoutusr
: User IDwlt
: Wallet Address of the user
Last updated