Dawn Pay makes it easy to accept payments across Internet. This integration with Kiwi News enables users to tip for any user's submissions.
In this initial version of the SDK, when a user tries to tip, it will search for USDC on Base, Optimism, Polygon and Arbitrum, primarily using USDC on Base. If the user doesn't have USDC, it will switch to using ETH, then, the SDK will construct the transaction and present it for the user to sign.
Implementation
Dawn Pay Modal: Created a new component that gets inserted into the page through the tipsbuttoncontainer element.
Notifications Page: Used the fetch library that caches requests on disk, then insert the tips (in case they exist) into the grouped notifications array.
Description
Dawn Pay makes it easy to accept payments across Internet. This integration with Kiwi News enables users to tip for any user's submissions.
In this initial version of the SDK, when a user tries to tip, it will search for USDC on Base, Optimism, Polygon and Arbitrum, primarily using USDC on Base. If the user doesn't have USDC, it will switch to using ETH, then, the SDK will construct the transaction and present it for the user to sign.
Implementation
tipsbuttoncontainer
element.Demo
Flow Video
Activity Screenshot