infinityOmniPay

Omnify's payment suite and infrastructure is all hosted in OmniPay. It paves the way for full payments, receipts, refunds, installments, and instant revenue withdrawals. Accessible from pay.omnify.financearrow-up-right and app.omnify.finance/paymentsarrow-up-right.

OmniPay Logo

In this section we will cover making payments, paying installments, withdrawing revenues, and checking if a payment was made and if a payment was refunded. Payments are made in the native token of the network you are on. You can find a list of all Omnify services' tiers and fees at omnify.finance/feesarrow-up-right.

Start by downloading the OmniPay interfacearrow-up-right found in our github repo.

Making a payment

1

Define OmniPay variable

2

Get Omnify's fee / payment

3

Call makePayment

Checking if a payment was made or refunded via ID

We lookup a payment by its ID from the OmniPay contract by calling lookupPayment. The return value is a Payment struct containing all details about the payment.

Paying installments

When paying an installment be sure to get the amount per installment of that payment, and the fee Omnify charges per installment.

Additionally, if its the last installment it is required to calculate the final installment by subtracting the paid amount so far from the full amount. Replace amountPerInstallment with paidSoFar and installmentAmount .

Withdrawing Revenues

Any vendor can withdraw any amount of their revenues whenever they wish by simply calling withdrawBalance , granted they've received payments equal or more than the amount they are trying to withdraw.

All our crypto payment needs are covered with OmniPay.♾️

Last updated