Skip to content

Implement subscription tax calculation and remittance system #190

@Smartdevs17

Description

@Smartdevs17

Implement subscription tax calculation and remittance system

##Description

Context: Subscription payments may require tax calculation and remittance in various jurisdictions.

Current Limitation: No tax calculation exists in the system.

Expected Outcome: Implement tax system with configurable rates, automatic calculation, and reporting.

Acceptance Criteria

  • Implement TaxConfig: rates by region, tax_type, remittance_schedule
  • Add tax calculation per subscription transaction
  • Support multiple tax types (sales tax, VAT, GST)
  • Implement tax exemption handling
  • Add tax reporting by jurisdiction
  • Support tax remittance scheduling
  • Implement reverse charge mechanism
  • Create UI for tax configuration
  • Write tests for tax calculations

Technical Scope

Files Likely Affected:

  • contracts/tax/src/lib.rs - New tax module
  • contracts/tax/src/calculation.rs - Tax calculations
  • app/stores/taxStore.ts - Tax configuration
  • app/screens/TaxSettingsScreen.tsx

APIs/Contracts Involved:

  • calculate_tax(subscription_id: SubscriptionId, region: Region) -> TaxAmount
  • get_tax_report(merchant_id: MerchantId, period: TimeRange, region: Region) -> TaxReport

Edge Cases to Consider:

  • Tax rate changes mid-period
  • Cross-border taxation
  • Tax exemption validation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programenhancementNew feature or requestfeatureNew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions