Popup integration
EES Pay offers easy checkout integration with a popup window. It works by opening a URL starting with pay.ees.xyz/popup followed by URL arguments. This makes it possible to create a custom button or other HTML elements on your website while still preserving all functionality in a separate window. For now, the job will be made using the RegularTimeInterval execution module and LinearAuction fee module. The list of arguments can be seen here:
recipient
Address of the recipient of the subscription payments.
cooldown
Number of seconds between payments. For example, 30 days is cooldown=2592000.
token
Address of ERC-20 token that is paid with.
amount
Amount of tokens paid each time. This is the actual decimal number e.g. amount=10.5 and not the EVM integer version.
initial_payment_time
UNIX time in seconds of the first payment. If set below current time, first payment happens immediately.
execution_window
The amount of time in seconds where the payment can be processed after it is due before expiring. This has to be less than or equal to cooldown.
fee_token
Address of the ERC-20 token used for EES execution fee.
min_fee
Amount of minimum execution fee. This is the actual decimal number e.g. min_fee=0.02 and not the EVM integer version.
max_fee
Amount of maximum execution fee. This is the actual decimal number e.g. max_fee=0.02 and not the EVM integer version.
sponsor
Address of sponsor of the subscription.
sponsor_signature
EIP-712 signature of sponsor permit. The permit has to contain the same parameters as given in the URL.
permit_nonce
Nonce of the sponsor permit used for the signature.
permit_deadline
UNIX time in seconds for when the provided sponsor signature will expire.
The parameters sponsor, sponsor_signature, permit_nonce and permit_deadline should only be provided if there is an intention to sponsor the processing fee of the subscription. However, if there is an intention of making a sponsorship, all of these parameters should be provided.
Last updated