#Yashish
1 messages · Page 1 of 1 (latest)
i want to pass some extra information which i can user after the subscription update
You can use the metadata field: https://stripe.com/docs/api/subscriptions/update#update_subscription-metadata
but got the error
stripe.error.InvalidRequestError: Request req_qLwTefxWyqvxyH: When payment_behavior is set to pending_if_incomplete, you can only pass supported params. metadata is not supported.
Hm, I haven't heard of such limitation. Is there a reason you use pending_if_incomplete?
yes
its complicated and i have to only use pending_if_incomplete
can you provide any other way to pass some extra information which i can user after the subscription update
You can also store the information in your database, with the respective Subscription ID
I don't think so. But why are you updating the Subscription with payment_behavior='pending_if_incomplete',?
I see. Can you update the metadata in a separate call?
how?
subscription = subscription.modify(
subscription_id,
metadata=...
)
but doing subscription.modify 2 timnes can cause any conflict?
No conflict, why?