Skip to content

Conversation

@bjinwright
Copy link
Member

No description provided.

@Zuiluj Zuiluj assigned Zuiluj and unassigned Zuiluj Nov 11, 2021
@Zuiluj
Copy link
Contributor

Zuiluj commented Nov 11, 2021

Changes

Added base Stripe classes and models in PFunk

Notable additions

pfunk.ecommerce.views.py

  • CheckoutView - Base checkout view that returns context that includes the Stripe session view for easier handling of payments
  • CheckoutSuccessView - Base checkout session success view that acquires the data from the Stripe session
  • BaseWebhookView - Base stripe webhook view that allows execution custom actions taken directly from stripe webhook event types; sending of email; checking of IP of the webhook request and checking of signing secret

pfunk.ecommerce.models.py

  • StripeCustomer - Base customer collection for Stripe customers
    • Includes get_or_create_customer function for easier lookup and creation
  • StripePackage - Base package collection for Stripe packages
    • Includes function-as-a-property stripe_price that returns price * 100

Files Added/Changed

  • pfunk/ecommerce/models.py
  • pfunk/ecommerce/views.py
  • poetry.lock
  • pyproject.toml

Dependencies

  • Based off of branch feature/api

@Zuiluj Zuiluj self-assigned this Nov 11, 2021
@bjinwright bjinwright merged commit 9831526 into feature/api Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants