Context passed between X402.Client.Hooks callbacks.
:payment_required— the decodedPaymentRequiredmap the payment is built for, ornilwhenX402.Client.build_payment/3was given a bare requirements map.:requirements— the selectedacceptsentry.before_payment/2may replace it; the replacement is what gets signed.:opts— the validated build options.:payload— the assembledPaymentPayload, set forafter_payment/2, which may replace it.:error— the failure reason, set foron_payment_failure/2, which may replace it.
Summary
Functions
Builds a new client hook context.