Platform Payment Flows

Orchestrate platform payments for posts, tips, and PRO memberships.

4|Updated Dec 5, 2025
One-click install
npx skills add https://github.com/aaaa47080/stock_agent --skill platform-payment-flows
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Platform Payment Flows
Source: https://github.com/aaaa47080/stock_agent/tree/main/.agent/skills/platform-payment-flows
Command: npx skills add https://github.com/aaaa47080/stock_agent --skill platform-payment-flows

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Platform-specific payment logic for posts, tips, and PRO membership upgrades, aligning client SDK payments with server-side verification and fulfillment.

Core Features & Use Cases

  • Payment orchestration: Client-Side Pi SDK initiates payments and returns txid; Server-Side verifies and fulfills actions against business logic.
  • Workflow coverage: Handles paid post creation, tipping, and PRO membership upgrades with transactional integrity and replay protection.
  • Operational scope: Integrates with frontend assets (web/js/forum.js, web/js/premium.js), backend routers (api/routers/forum.py, api/routers/user.py), and databases (core/database/forum.py, core/database/user.py) to apply payments to platform features. Use Case: Imagine a user pays 0.1 Pi to create a post and automatically unlocks it, while the creator receives a tip and the payer upgrades to PRO after monthly billing.

Quick Start

Integrate the client and server payment flows to enable platform payments.

Frequently Asked Questions about Platform Payment Flows

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify Pi Network payments on the server side after client SDK initiation?

To verify Pi Network payments, your backend router receives the transaction ID from the client SDK, verifies the txid against the Pi Network, and fulfills actions by updating payment-related states in the database with validation and safety checks.

What is the best way to orchestrate platform payments for posts, tips, and PRO memberships?

The best way to orchestrate platform payments is unifying client-side SDK initiation and server-side verification to handle paid post creation, tipping, and PRO membership upgrades with transactional integrity and replay protection across frontend, backend, and database layers.

How does platform payment flow handle transactional integrity and replay protection?

Platform payment flow ensures transactional integrity and replay protection by applying server-side verification and fulfillment safety checks against your business logic before updating payment states for posts, tips, or memberships in the database.

Can I use this payment orchestration for monthly PRO membership upgrades and billing?

Yes, you can use this payment orchestration for monthly PRO membership upgrades and billing by integrating frontend assets like premium.js with backend user routers to verify transactions and update membership states.

Do I need specific frontend and backend routers to enable tipping and paid post creation?

Yes, you need frontend assets like forum.js and backend routers like forum.py to enable tipping and paid post creation, ensuring the client SDK initiates the payment and the server verifies the txid to unlock the post automatically.