Billing Resource
The billing system handles payments for premium subscriptions and other purchasable items.Payment Object
Structure
Unique payment/checkout session identifier
ID of the user making the payment
Stripe customer identifier
Stripe payment intent ID
Stripe subscription ID (for recurring payments)
Stripe invoice ID
Stripe price ID for the product
Type of product purchased (e.g., “premium_monthly”, “premium_yearly”)
Payment amount in cents
Three-letter ISO currency code (e.g., “USD”, “EUR”)
Payment status (see Payment Status)
Whether this is a gift purchase
Gift code if this is a gift purchase
When the payment was initiated
When the payment was completed
Version for optimistic concurrency control
Example Payment
Payment Status
Product Types
Premium Subscriptions
Gift Codes
Subscription Management
Subscription Object
Stripe subscription ID
Subscription status:
active, past_due, canceled, unpaidStart of the current billing period
End of the current billing period
Whether the subscription will cancel at period end
When the subscription was canceled
Billing Cycle
Payment Methods
Fluxer uses Stripe for payment processing and supports:- Credit/Debit Cards (Visa, Mastercard, American Express, etc.)
- PayPal
- Apple Pay
- Google Pay
- Bank transfers (select regions)
- SEPA Direct Debit (Europe)
Endpoints
Create Checkout Session
Product to purchase (e.g., “premium_monthly”)
Whether this is a gift purchase
URL to redirect after successful payment
URL to redirect if payment is canceled
Get Payment History
Number of payments to return (1-100)
Get payments before this payment ID
Get Current Subscription
Cancel Subscription
Optional cancellation feedback
Cancellation reason code
Reactivate Subscription
Update Payment Method
Get Invoices
Number of invoices to return (1-100)
Download Invoice
Gift Codes
Gift codes allow users to give premium subscriptions to others.Purchasing Gifts
- Create a checkout session with
is_gift: true - Complete payment
- Receive a unique gift code
- Share the code with the recipient
Redeeming Gifts
Gift code to redeem
Gift Code Object
Unique gift code
Type of premium granted
Whether the code has been redeemed
User who redeemed the code
When the code was redeemed
When the code expires
Refunds
Refunds are handled on a case-by-case basis:- Contact support within 14 days of purchase
- Refunds typically processed within 5-10 business days
- Subscription time is adjusted accordingly
- Abuse of refund system may result in restrictions
Webhooks
Stripe webhooks notify Fluxer of payment events:payment_intent.succeeded- Payment completedpayment_intent.failed- Payment failedinvoice.paid- Subscription invoice paidinvoice.payment_failed- Subscription payment failedcustomer.subscription.updated- Subscription changedcustomer.subscription.deleted- Subscription ended
Tax and VAT
- Prices shown include applicable taxes
- VAT collected for EU customers
- Tax rates determined by billing address
- Invoices include tax breakdown
Currency Support
Supported currencies:- USD (United States Dollar)
- EUR (Euro)
- GBP (British Pound)
- CAD (Canadian Dollar)
- AUD (Australian Dollar)
- JPY (Japanese Yen)
Security
- All payment processing handled by Stripe (PCI DSS Level 1)
- Fluxer never stores credit card numbers
- 3D Secure authentication for supported cards
- Encrypted connections (TLS 1.3)
- Fraud detection and prevention