Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a preferred way to implement discount codes? #406

Open
formidable01 opened this issue Apr 9, 2024 · 1 comment
Open

Is there a preferred way to implement discount codes? #406

formidable01 opened this issue Apr 9, 2024 · 1 comment
Labels

Comments

@formidable01
Copy link

When using the PayPal API, PayPal itself does not have a discount code interface so it must be implemented as part of the front-end before PayPal gets the payment amount. Is there a preferred manner to implement this function within django-payments?

@WhyNotHugo
Copy link
Member

Personally, I already had these implemented before migrating to django-payments. My Order model handled discounts and the total_price was the subtotal minus discount. So my payment model gets the total minus the discount.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants