Skip to main content
Loop allows you to take a direct payment from your customer. This “push” payment is sent directly to your payoutDestination. Thus, the user pays for gas fees.

Parameters

Property nameType/ExampleDescription
paymentMode"authorize" or "direct" (default: "authorize")Determines whether the user will authorize their wallet to allow future charges ("authorize") or process a single, one-time payment ("direct")
Since the customer is sending the transaction, they can tamper with the amount or destination. It’s important to wait until the PayInStateChangeEventComplete event is emitted. Loop will verify that the transaction confirmed on-chain matches the payin request. It could take a few minutes for the transaction to be included onchain and verified against the payIn.