Підготовка контенту платформи Ring
Підготовка контенту платформи Ring
Підготовка контенту платформи Ring
Concepts, value, and typical clone scenarios — less code.
Concepts, value, and typical clone scenarios — less code.
Concepts, value, and typical clone scenarios — less code.
Ring Platform v1.6 routes all card and credit flows through PaymentConductor (lib/payments/conductor/). WayForPay is the primary PSP for Ukraine; Stripe is supported for international rails.
Deep dive: PaymentConductor feature · Architecture · SubscriptionConductor
Use Founder / Developer tabs in the docs sidebar to filter this page.
| Purpose | Description | PSP |
|---|---|---|
| Store checkout | Product purchases via cart → checkout | WayForPay / Stripe |
| Membership upgrades | Role upgrade (e.g. SUBSCRIBER → MEMBER) | WayForPay / Stripe |
| News promotion | News Kingdom sponsored articles | WayForPay / Stripe |
| Internal credit | Credit balance wallet spend | Internal |
| RING token | On-chain Solana token payments | RING |
payment_transactions ledger.PAYMENT_DEFAULT_PROCESSOR in env; override per-purpose with PAYMENT_STORE_PROCESSOR, PAYMENT_MEMBERSHIP_PROCESSOR, PAYMENT_NEWS_PROCESSOR.Ring Platform v1.6 routes all card and credit flows through PaymentConductor (lib/payments/conductor/). WayForPay is the primary PSP for Ukraine; Stripe is supported for international rails.
Deep dive: PaymentConductor feature · Architecture · SubscriptionConductor
Use Founder / Developer tabs in the docs sidebar to filter this page.
| Purpose | Description | PSP |
|---|---|---|
| Store checkout | Product purchases via cart → checkout | WayForPay / Stripe |
| Membership upgrades | Role upgrade (e.g. SUBSCRIBER → MEMBER) | WayForPay / Stripe |
| News promotion | News Kingdom sponsored articles | WayForPay / Stripe |
| Internal credit | Credit balance wallet spend | Internal |
| RING token | On-chain Solana token payments | RING |
payment_transactions ledger.PAYMENT_DEFAULT_PROCESSOR in env; override per-purpose with PAYMENT_STORE_PROCESSOR, PAYMENT_MEMBERSHIP_PROCESSOR, PAYMENT_NEWS_PROCESSOR.Ring Platform v1.6 routes all card and credit flows through PaymentConductor (lib/payments/conductor/). WayForPay is the primary PSP for Ukraine; Stripe is supported for international rails.
Deep dive: PaymentConductor feature · Architecture · SubscriptionConductor
Use Founder / Developer tabs in the docs sidebar to filter this page.
| Purpose | Description | PSP |
|---|---|---|
| Store checkout | Product purchases via cart → checkout | WayForPay / Stripe |
| Membership upgrades | Role upgrade (e.g. SUBSCRIBER → MEMBER) | WayForPay / Stripe |
| News promotion | News Kingdom sponsored articles | WayForPay / Stripe |
| Internal credit | Credit balance wallet spend | Internal |
| RING token | On-chain Solana token payments | RING |
payment_transactions ledger.PAYMENT_DEFAULT_PROCESSOR in env; override per-purpose with PAYMENT_STORE_PROCESSOR, PAYMENT_MEMBERSHIP_PROCESSOR, PAYMENT_NEWS_PROCESSOR.Apply data/migrations/004_payment_transactions.sql before enabling the conductor in production. All transactions are persisted in the payment_transactions collection with the DatabaseService result contract { success, data, error }.
{
"payment": {
"cardPaymentProcessor": "wayforpay",
"supportedMethods": ["wayforpay", "credit_balance", "native_token"],
"futureMethods": ["stripe", "paypal", "nft_gate"],
"gateways": {
"wayforpay": { "enabled": true, "feePercent": 2.5, "currency": "UAH" },
"stripe": { "enabled": false, "feePercent": 2.9, "feeFixedCents": 30, "currency": "USD" },
"credit_balance": { "enabled": true, "feePercent": 0, "currency": "USD" },
"native_token": { "enabled": true, "feePercent": 0, "currency": "RING", "label": "Tokens" }
}
}
}
PAYMENT_DEFAULT_PROCESSOR=wayforpay
WAYFORPAY_MERCHANT_ACCOUNT=your_merchant
WAYFORPAY_SECRET_KEY=your_secret
STRIPE_SECRET_KEY=sk_live_...
STRIPE_WEBHOOK_SECRET=whsec_...
PAYMENT_FIAT_CURRENCY=USD
Checkout / upgrade / promotion
↓
lib/payments/conductor/payment-conductor.ts
↓
Processors: wayforpay | stripe | internal_credit
↓
payment_transactions (PostgreSQL, migration 004)Apply data/migrations/004_payment_transactions.sql before enabling the conductor in production. All transactions are persisted in the payment_transactions collection with the DatabaseService result contract { success, data, error }.
{
"payment": {
"cardPaymentProcessor": "wayforpay",
"supportedMethods": ["wayforpay", "credit_balance", "native_token"],
"futureMethods": ["stripe", "paypal", "nft_gate"],
"gateways": {
"wayforpay": { "enabled": true, "feePercent": 2.5, "currency": "UAH" },
"stripe": { "enabled": false, "feePercent": 2.9, "feeFixedCents": 30, "currency": "USD" },
"credit_balance": { "enabled": true, "feePercent": 0, "currency": "USD" },
"native_token": { "enabled": true, "feePercent": 0, "currency": "RING", "label": "Tokens" }
}
}
}
PAYMENT_DEFAULT_PROCESSOR=wayforpay
WAYFORPAY_MERCHANT_ACCOUNT=your_merchant
WAYFORPAY_SECRET_KEY=your_secret
STRIPE_SECRET_KEY=sk_live_...
STRIPE_WEBHOOK_SECRET=whsec_...
PAYMENT_FIAT_CURRENCY=USD
Checkout / upgrade / promotion
↓
lib/payments/conductor/payment-conductor.ts
↓
Processors: wayforpay | stripe | internal_credit
↓
payment_transactions (PostgreSQL, migration 004)Apply data/migrations/004_payment_transactions.sql before enabling the conductor in production. All transactions are persisted in the payment_transactions collection with the DatabaseService result contract { success, data, error }.
{
"payment": {
"cardPaymentProcessor": "wayforpay",
"supportedMethods": ["wayforpay", "credit_balance", "native_token"],
"futureMethods": ["stripe", "paypal", "nft_gate"],
"gateways": {
"wayforpay": { "enabled": true, "feePercent": 2.5, "currency": "UAH" },
"stripe": { "enabled": false, "feePercent": 2.9, "feeFixedCents": 30, "currency": "USD" },
"credit_balance": { "enabled": true, "feePercent": 0, "currency": "USD" },
"native_token": { "enabled": true, "feePercent": 0, "currency": "RING", "label": "Tokens" }
}
}
}
PAYMENT_DEFAULT_PROCESSOR=wayforpay
WAYFORPAY_MERCHANT_ACCOUNT=your_merchant
WAYFORPAY_SECRET_KEY=your_secret
STRIPE_SECRET_KEY=sk_live_...
STRIPE_WEBHOOK_SECRET=whsec_...
PAYMENT_FIAT_CURRENCY=USD
Checkout / upgrade / promotion
↓
lib/payments/conductor/payment-conductor.ts
↓
Processors: wayforpay | stripe | internal_credit
↓
payment_transactions (PostgreSQL, migration 004)
PAYMENT_STORE_PROCESSOR=stripe # Override store checkout to Stripe
PAYMENT_MEMBERSHIP_PROCESSOR=stripe # Override membership to Stripe
PAYMENT_NEWS_PROCESSOR=wayforpay # News stays on WayForPay
PAYMENT_STORE_PROCESSOR=stripe # Override store checkout to Stripe
PAYMENT_MEMBERSHIP_PROCESSOR=stripe # Override membership to Stripe
PAYMENT_NEWS_PROCESSOR=wayforpay # News stays on WayForPay
PAYMENT_STORE_PROCESSOR=stripe # Override store checkout to Stripe
PAYMENT_MEMBERSHIP_PROCESSOR=stripe # Override membership to Stripe
PAYMENT_NEWS_PROCESSOR=wayforpay # News stays on WayForPay