Papaya Finance Protocol
SDKProtocol
  • Introduction
  • Interaction
  • Getting Started
    • Initial Setup
    • Integration Steps
    • Go Live
  • Features
    • Real-Time Payment Streaming
    • Supported Networks
    • Business Dashboard
  • Use Cases
    • For Enterprises
    • For Financial Services
    • For Digital Economy
  • FAQ
  • Glossary
  • Future Development
  • Protocol
    • Common Methods
    • Recurring Payments
    • Subscription Methods
    • Auto Top-up
    • Liquidations
    • Fees
    • Advanced Section
      • Events
      • Subscriptions
      • Projects
      • Signatures
  • SDK
    • Installation
    • Quick Start
    • API
      • PapayaGetter
      • PapayaInteraction
      • PapayaBySigInteraction
Powered by GitBook
On this page
  • pay
  • subscribe
  • unsubscribe
  1. Protocol

Subscription Methods


pay

Enables the transfer of funds outside the subscription mechanism, akin to a traditional transfer method.

function pay(address receiver, uint256 amount)

subscribe

Allows the creation and modification of subscriptions. Users specify their desired monthly payment amount, as costs cannot be efficiently predefined.

function subscribe(address author, uint96 subscriptionRate, uint256 projectId)

unsubscribe

Trigger the termination of a subscription. This method can be called at any time to halt payments from an individual user.

function unsubscribe(address author) external
PreviousRecurring PaymentsNextAuto Top-up

Last updated 9 months ago