Skip to content

Commit

Permalink
Set app info
Browse files Browse the repository at this point in the history
Closes #643
  • Loading branch information
paltman committed Nov 27, 2021
1 parent 880acce commit 408c3f3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pinax/stripe/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import stripe
from appconf import AppConf

from pinax.stripe import __version__


class PinaxStripeAppConf(AppConf):

Expand All @@ -21,3 +23,11 @@ def configure_api_version(self, value):
def configure_secret_key(self, value):
stripe.api_key = value
return value

def configure(self):
stripe.set_app_info(
name="Pinax Stripe Light",
version=__version__,
url="https://github.com/pinax/pinax-stripe-light"
)
return super().configure()

0 comments on commit 408c3f3

Please sign in to comment.