We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cf704d commit 1296222Copy full SHA for 1296222
stripe_api/payment.py
@@ -5,11 +5,11 @@
5
stripe.api_key = STRIPE_SECRET_KEY
6
7
8
-class StripeError(Exception):
+class StripeException(Exception):
9
pass
10
11
12
-class PaymentIntentError(StripeError):
+class PaymentIntentException(StripeException):
13
14
15
@@ -24,7 +24,7 @@ def create_payment_intent(
24
metadata={"organization_id": organization_id, "charge_type": charge_type},
25
)
26
except stripe.error.InvalidRequestError as e:
27
- raise PaymentIntentError(e)
+ raise PaymentIntentException(e)
28
29
30
def get_payment_intent(payment_intent_id):
0 commit comments