How to make a payment
Find out how to pay out to one or many bank accounts.
How to initiate a payment to one or many bank accounts:
Create a Quote object. The value of
deposit_token_amount
will initially be 0.Create an Offramp object that belongs to the Quote. This is where you say how much of which currency you want to be delivered to which bank account.
You can add one Offramp if you are just paying one bank, or multiple Offramps if you are paying multiple banks in one go.
The value of
deposit_token_amount
on the Quote object will increase with every Offramp you add to reflect the amount of crypto that needs to be transferred. You can use Quote#Show to check the value at any time.Once you have added all your Offramps, transfer the
deposit_token_amount
to the provideddeposit_address
and submit the token hash to Quotes#Execute.You will then receive webhooks informing you about the payment progress.