Payments

pay(receiverAddress : string, amount: number) : Promise<UncompletedPayment>

This methods returns the necessary information for our API to verify the payment.

Visually it opens the user's wallet and prompt them to send the amount of ether to our payment contract. You will be able to withdraw the funds once the payment has been confirmed.

UncompletedPayment

A plain JS object representing a payment that has not been completed on the blockchain.

You need to add additional information before sending the payment for confirmation to our API

interface UncompletedPayment { txHash: string; payer: string; recipient: string; isTestnet: boolean; }