#NotP_Dot
1 messages · Page 1 of 1 (latest)
Yes, there is payment_intent.succeeded though you may want to use checkout.session.succeeded or invoice.paid if you are using Checkout or Invoicing
Can you tell me more about what Stripe API(s) you are using here? I can see if we have specific docs on this
I believe we're using the following
def getStripeUrl(allProductsToBePurchased, purchaseObj, email, FRONT_END_DOMAIN): stripe.api_key = constants.ACTIVE_STRIPE_KEY print("items to be purchased : ", allProductsToBePurchased) try: checkout_session = stripe.checkout.Session.create( line_items = allProductsToBePurchased, mode='payment', success_url=FRONT_END_DOMAIN + '/success?session_id={CHECKOUT_SESSION_ID}', cancel_url=FRONT_END_DOMAIN + '/cancel', customer_email=email ) return checkout_session except Exception as e: return str(e)
Gotcha in that case you may find this guide useful https://stripe.com/docs/payments/checkout/fulfill-orders
It is specifically about order fulfillment with Checkout. You can use the checkout.session.completed or payment_intent.succeeded events but the checkout one will likely be a bit better as it also includes info on the purchased items that were in the session