#Jewe
1 messages ยท Page 1 of 1 (latest)
Can you send me the code for your stripe.PaymentIntent.capture call?
Hi Pompey. Thanks for looking into this
give me a se
sec
stripe.PaymentIntent.capture(pid,**cdat,)
cdat = {"amount_to_capture":cents}
Can you print out the value that you are passing in for pid? It should be a string of the form pi_123456....
Trying to find causes of that error and will get back to you
pid id pi_3LzeJpLK3ksSjRk11WLGpXpl
Thank you, good to know. Checking in to what can cause this error
Can you make any Stripe calls in your Python code? Is it just this call that is not working?
just the line above i do update on the paymentIntent to update description
this works
stripe.PaymentIntent.modify(pid,description=desc,)
Can you try running stripe.PaymentIntent.capture(pid, amount_to_capture=cents)? I am wondering if how those parameters are currently passed in is affecting this
i had the same idea and tested it before:
unfortunately it's the same ๐ฆ
Can you try that call without passing in amount_to_capture at all?
I can't see why that would work but just want to check
the thing is, this is a real customer
so if i run this, it would charge the full preauthorization amount
Ah, assumed this was test mode. Can you try making a test mode payment to make this call on?
i'll try. give me a minute
okay i did the same now on test mode using pi_3M1XEHDgUJaRazQV3O1GaiZu
same result
same happens if i ommit the parameter as you mentioned
Hello ๐
Taking over as Pompey needed to step away
Okay fine. Thanks @lilac delta
want me to fill you in, or can you follow the thread?
Catching up on the thread, just a sec
what version of Stripe python library are you currently running?
Version: 2.21.0
oh damn ... i just now realise that this is a very old version ๐
i upgraded and it works
yeah, can you try updating it to the latest version for good luck and see if that fixes it?
oh nice
๐
Happy to help