StripeManaged.TaxCode (StripeManaged v0.1.0)

Copy Markdown View Source

Eligible tax codes for Stripe Managed Payments.

Only products with these tax codes can be sold through Managed Payments. These cover digital products: SaaS, software, games, digital media, online courses, etc.

Usage

# Get tax code for SaaS (personal use)
StripeManaged.TaxCode.saas_personal()
# => "txcd_10103001"

# Check if a tax code is eligible
StripeManaged.TaxCode.eligible?("txcd_10103001")
# => true

# List all eligible codes
StripeManaged.TaxCode.all()

Summary

Functions

Returns all eligible tax codes as a map of code => description.

Returns the description for a tax code, or nil.

Returns true if the given tax code is eligible for Managed Payments.

Functions

all()

@spec all() :: map()

Returns all eligible tax codes as a map of code => description.

description(code)

@spec description(String.t()) :: String.t() | nil

Returns the description for a tax code, or nil.

ebooks_personal()

eligible?(code)

@spec eligible?(String.t()) :: boolean()

Returns true if the given tax code is eligible for Managed Payments.

online_courses_personal()

saas_business()

saas_personal()

software_business()

software_personal()

video_games_personal()