#Jewe

1 messages ยท Page 1 of 1 (latest)

young thicketBOT
harsh tiger
#

Can you send me the code for your stripe.PaymentIntent.capture call?

amber zenith
#

Hi Pompey. Thanks for looking into this

#

give me a se

#

sec

#

stripe.PaymentIntent.capture(pid,**cdat,)

#

cdat = {"amount_to_capture":cents}

harsh tiger
#

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

amber zenith
#

pid id pi_3LzeJpLK3ksSjRk11WLGpXpl

harsh tiger
#

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?

amber zenith
#

just the line above i do update on the paymentIntent to update description

#

this works

#

stripe.PaymentIntent.modify(pid,description=desc,)

harsh tiger
#

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

amber zenith
#

i had the same idea and tested it before:
unfortunately it's the same ๐Ÿ˜ฆ

harsh tiger
#

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

amber zenith
#

the thing is, this is a real customer

#

so if i run this, it would charge the full preauthorization amount

harsh tiger
#

Ah, assumed this was test mode. Can you try making a test mode payment to make this call on?

amber zenith
#

i'll try. give me a minute

amber zenith
#

okay i did the same now on test mode using pi_3M1XEHDgUJaRazQV3O1GaiZu

#

same result

#

same happens if i ommit the parameter as you mentioned

lilac delta
#

Hello ๐Ÿ‘‹
Taking over as Pompey needed to step away

amber zenith
#

Okay fine. Thanks @lilac delta

#

want me to fill you in, or can you follow the thread?

lilac delta
#

Catching up on the thread, just a sec

#

what version of Stripe python library are you currently running?

amber zenith
#

Version: 2.21.0

#

oh damn ... i just now realise that this is a very old version ๐Ÿ™ˆ

#

i upgraded and it works

lilac delta
#

yeah, can you try updating it to the latest version for good luck and see if that fixes it?

#

oh nice

#

๐ŸŽ‰

amber zenith
#

thanks hanzo. all good now

#

๐ŸŽ‰

lilac delta
#

Happy to help