#heroplatz
1 messages · Page 1 of 1 (latest)
hello! is this for python?
hrm, we have a migration guide here : https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v8-(StripeClient)
but what are you trying to modify? there's no values in the snippet you showed
# 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()
give me a while to test this out and get back to you
okay ill wait thanks
Hi @gilded heron I'm taking over this thread
Are you using the latest Python SDK?
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()
OK. It looks like our docs isn't updated to the latest SDK version. the function name should be update instead of modify
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
The docs aren't updated to the client-service pattern, I'll feed back to the relevant team.
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
I don't see any deprecation plan yet but my personal opinion is to migrate to the new pattern