Skip to content

providers tax and others fields #447

@vhsantos

Description

@vhsantos

Hello,

on django-payments, there are a model field tax.
Is it there only as placeholder and one need to make all the calculations manually ??

more context:

total = 100
tax = 23
stripe amount_total = 100

my expectation should be able to have the price calculated using the Tax.

And, how we can pass another fields/parameters to the providers ?? more specific, stripe has:

automatic_tax[enabled] = False/True

But I didn't saw any option to pass it as optional parameter. maybe something like this for providers ?

PAYMENT_VARIANTS = {
    "stripe": (
        "payments.stripe.StripeProviderV3",
        {
            "api_key": STRIPE_PUBLIC_KEY,
            "use_token": True,
            "endpoint_secret": STRIPE_ENDPOINT_SECRET,
            "secure_endpoint": STRIPE_SECURE_ENDPOINT,
            "extra_parameters": [
                      automatic_tax = true,
                      other = example
            ]
        },
    ),
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions