To request a Yodl payment, yapps should use the requestPayment()
function exposed by the yapp SDK.
requestPayment
calls window.postMessage
for secure communication between the iframe and the parent.
When the Yodl app receives a payment request, the payment modal will be displayed. The user can configure payment settings, e.g. outgoing token, and complete or reject the payment. After completed payment the modal will close and the yapp receives a response with txHash
and chainId
. Try it out below.
Request a payment
To
Amount
Currency