Skip to content

v0.10.0 - payment links

Choose a tag to compare

@modulout modulout released this 04 Oct 09:50
· 42 commits to main since this release

Added

  • Payment links - createPaymentLink(terms), paymentLinkStatus({ link } | { manage }),
    collectPaymentLink(manage, subscriptionId), stopPaymentLink(manage, subscriptionId) and, for
    custom checkouts, openPaymentLink(link, payer?) and subscribePaymentLink(link, subscriptionRef). Invoices paid once, fixed prices paid many
    times, and subscriptions P2Flux collects for you - no server needed.
    (https://p2flux.com/docs/payment-links.html)
  • checkoutLink('link' | 'links', token) for the buyer's link and the merchant's overview.
  • Error codes INVALID_LINK, LINK_EXPIRED, LINK_UNAVAILABLE, ALREADY_SUBSCRIBED.