Skip to content

fix: "Paid" message prints even when x402 payment is rejected by server #129

@daiwikmh

Description

@daiwikmh

Problem

ows pay request prints "Paid $X on via x402" immediately after
signing and submitting the payment — before checking whether the server
actually accepted it. If the server rejects with HTTP 402 (e.g. insufficient
balance), the user sees both "Paid" and an error, which is contradictory and
misleading.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions