#jcalentine
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- jcalentine, 2 hours ago, 26 messages
- jcalentine, 21 hours ago, 8 messages
- jcalentine, 5 days ago, 29 messages
Hi there, do you know the ID of the object that you set the metadata to?
This is a checkout.session.completed event, did you set the metadata on the same checkout session object?
do I need to set this in the initiate_payment where i am constructing the checkout_session object?
so i will walk you through: I first enter the payment page(initiate_payment function) then i construct the description based on the conditional that checks what payment option was chosen then i set the description based on that
How did you set the metadata? Is it through https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata ?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and have the following: checkout_session = stripe.checkout.Session.create( payment_method_types=['card'], line_items=[ { 'price': product_price, 'quantity': 1, }, ], metadata={'description': description}, mode='payment', customer_creation='always', success_url=settings.DEFAULT_DOMAIN + '/payment_successful?session_id={CHECKOUT_SESSION_ID}', cancel_url=settings.DEFAULT_DOMAIN + '/payment_cancelled', )
do you see anything that is wrong with the metadata portion of the above
Do you have the ID of checkout session creation request?
you mean checkout_session_id = request.GET.get('session_id', None)
this is in the payment_success function
https://dashboard.stripe.com/logs/req_KSKWEA9UeNVlJs this is the request log. And I don't see metadata in the request.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I am going to try a few more things