DjangoTricks
  • Tricks
  • Blog
  • Goodies
  • Social
  • Donate
  • Manage Cookies
Random trick ➔
Currently I am developing PyBazaar - Python Developer Hub. Be among the first to sign up!

About Saving Prices

Stripe payment gateway operates amounts in cents. Convert cents to a decimal price as follows:

from decimal import Decimal
amount_in_cents = 1499
payment.amount = Decimal(amount_in_cents) / 100

Tips and Tricks Programming Django 5.2 Django 4.2 Django 3.2 Python 3 Stripe

  • image/svg+xml Share
    on X
  • Share
    on Facebook
  • Share
    on LinkedIn

Also by me

Django Paddle Subscriptions app

For Django-based SaaS projects.

Django App for You
Django GDPR Cookie Consent app

For Django websites that use cookies.

Django App for You
Django 3 Web Development Cookbook - Fourth Edition
Book for You
Django 3 Web Development Cookbook

Learn how to build practical web projects with Django 3.

1st things 1st
SaaS for You
Online prioritizer "1st things 1st"

It's not for everyone, but it might be for you!