#heroplatz

1 messages · Page 1 of 1 (latest)

fair atlasBOT
icy shell
#

hello! is this for python?

gilded heron
#

yes

#

stripe_client.payment_intents.create worked fine, not sure why modify doesnt

icy shell
gilded heron
#
# Update Stripe payment intent
payment_intent = stripe_client.payment_intents.modify(purchase.payment.payment_id, params={
    'amount': stripe_amount,
    'description': description,
    'metadata': {
        'version': listing.version,
        'price': listing.price,
        'quantity': quantity,
        'discount': purchase_discount,
        'promo_code': promo_code if promo_code else '',
    }
})
#

im following the migration guide but it says that payment_intents.modify doesnt exist

#

when previously i was using stripe.PaymentIntent.modify()

icy shell
#

give me a while to test this out and get back to you

gilded heron
#

okay ill wait thanks

fair atlasBOT
light sentinel
#

Hi @gilded heron I'm taking over this thread

#

Are you using the latest Python SDK?

gilded heron
#

i just updated my packages, im using
stripe = "8.1.0"

#

This works fine:

stripe_client.payment_intents.create() 
#

not sure why this doesnt

stripe_client.payment_intents.modify()
light sentinel
#

OK. It looks like our docs isn't updated to the latest SDK version. the function name should be update instead of modify

gilded heron
#

okay that worked!

#

thanks for the help

gilded heron
#

Hello, is there a place where i can see the method name changes?

stripe_client.accounts.create_person() doesnt exist

#

but documentation says its the proper way

light sentinel
#

The docs aren't updated to the client-service pattern, I'll feed back to the relevant team.

gilded heron
#

will the client service pattern be the new norm in the future and will stripe attempt to slowly remove the old pattern? or is the goal to keep both as different options when using regular stripe vs StripeClient

light sentinel
#

I don't see any deprecation plan yet but my personal opinion is to migrate to the new pattern

gilded heron
#

okay

#

i found how to create a person

#

stripe_client.accounts.persons.create()

#

i think im able now to dig into the stripe module and find the different things that i need