#jcalentine

1 messages · Page 1 of 1 (latest)

tidal nimbusBOT
#

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.

wind sierra
#

Hi there, do you know the ID of the object that you set the metadata to?

mint wasp
#

yes

#

one sec

#

"id": "evt_1OhG6fJ4gBUKtXvTbmxnyczW",

wind sierra
#

This is a checkout.session.completed event, did you set the metadata on the same checkout session object?

mint wasp
#

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

wind sierra
mint wasp
#

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

wind sierra
#

Do you have the ID of checkout session creation request?

mint wasp
#

you mean checkout_session_id = request.GET.get('session_id', None)

#

this is in the payment_success function

wind sierra
mint wasp
#

I am going to try a few more things