We should redirect or load iframe (redirect is recommended) our user to:
https://wallet.wallettwo.com/auth/login?action=ramp
action: Use 'ramp' for this example. On interactions group you can find all what you can do.
action
redirect_uri: Url where user should be redirected to after success or error.
redirect_uri
type : Onramp or offramp ramp.
type
network_id: ID of network to deposit ramp
network_id
contract: Symbol of contract to ramp
contract
currency: (optional) Slug of currency to ramp
currency
payment_method: (optional) Slug of payment method to use on the ramp
payment_method
amount:(optional) Tokens to show to the user
amount
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 false
success
status: Status of the ramp
status
ramp_id: ID of the ramp
ramp_id
usr: User ID
usr
wlt: Wallet Address of the user
wlt
Last updated 8 months ago