Skip to main content

LFS Stripe

A Django Lightning Fast Shop (LFS) payment integration for Stripe.

Overview

This package provides Stripe payment integration for LFS e-commerce platform. It allows customers to make secure credit card payments through Stripe's payment processing system.

Features

  • Seamless integration with LFS checkout process
  • Secure credit card processing via Stripe API
  • Support for payment intents
  • Client-side card validation

Installation

  1. Install the package:

    pip install lfs-stripe
    
  2. Add to your INSTALLED_APPS in settings.py:

    INSTALLED_APPS = [
        # ...
        'lfs_stripe',
        # ...
    ]
    
  3. Configure your Stripe API keys in settings.py:

    STRIPE_SECRET_KEY = 'your_stripe_secret_key'
    STRIPE_PUBLISHABLE_KEY = 'your_stripe_publishable_key'
    
  4. Include the URLs in your project's urls.py:

    urlpatterns = [
        # ...
        path('stripe/', include('lfs_stripe.urls')),
        # ...
    ]
    

Request Flow

  1. fetch to backend to: /stripe/create-payment-intent/
  2. API Call to stripe to: confirmCardPayment
  3. fetch to backend to: /stripe/create-order
  4. Redirect to thank-you page

Differences from LFS-PayPal

While both lfs-stripe and lfs-paypal provide payment integration for LFS, there are several key differences:

  1. Payment Processing:

    • Stripe processes credit card payments directly on your site (with client-side tokenization)
  2. API Integration:

    • Stripe uses a modern API with Payment Intents
  3. Payment Methods:

    • Stripe primarily handles credit card payments directly
  4. User Experience:

    • Stripe allows customers to stay on your site throughout the checkout process

Notes:

  • create payment intent muss immer im BE aufgerufen werden. Das verlangt Stripe zur Sicherheit, weil so keine Daten im Browser manipuliert werden können. Außerdem liegt nur dort der private key.
  • Im BE wird also intent = stripe.PaymentIntent.create(...) aufgerufen mit dem Betrag und dem private key
  • Das gibt wiederum ein client secret zurück
  • Mit diesem client secrect wird this.stripe.confirmCardPayment(clientSecret, {...}) aufgerufen
  • Wenn das erfolgreich ist

Metadata

Release files for lfs-stripe 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lfs-stripe 1.0.1
File Size Uploaded Provenance Actions
lfs_stripe-1.0.1.tar.gz 6.1 kB Without provenance Details for lfs_stripe-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lfs-stripe 1.0.1
File Interpreter ABI Platform Actions
lfs_stripe-1.0.1-py3-none-any.whl Python 3 none any Details for lfs_stripe-1.0.1-py3-none-any.whl

Total release size: 13.4 kB

Release files / lfs_stripe-1.0.1.tar.gz

Download URL lfs_stripe-1.0.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
614aa6c4ca2b0819009ceb15e0c3ad29aedc71af199a441729477bfb7b0cb12d
BLAKE2b-256 checksum
How to use checksums
aad4a7444f2d4438945626a0c0208e5c7315c7d8625f63e44119e585dc4cc68e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / lfs_stripe-1.0.1-py3-none-any.whl

Download URL lfs_stripe-1.0.1-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50e91d0bb84acd7cd2422730b5494cface52657e9cd84cbfd5f84643616d1a54
BLAKE2b-256 checksum
How to use checksums
978233efe109dd12eca513338be7a7d94f8a58501ef700a88a65202fd1154d91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Security for lfs-stripe 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page