#Yashish

1 messages · Page 1 of 1 (latest)

fluid pierBOT
obsidian wadi
#

Hi! Let me help you with this.

#

What's the question?

tacit notch
#

i want to pass some extra information which i can user after the subscription update

obsidian wadi
tacit notch
#

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.

obsidian wadi
#

Hm, I haven't heard of such limitation. Is there a reason you use pending_if_incomplete?

tacit notch
#

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

obsidian wadi
#

You can also store the information in your database, with the respective Subscription ID

tacit notch
#

not want to do like that

#

any way in stripe

obsidian wadi
#

I don't think so. But why are you updating the Subscription with payment_behavior='pending_if_incomplete',?

obsidian wadi
#

I see. Can you update the metadata in a separate call?

tacit notch
#

how?

obsidian wadi
#

subscription = subscription.modify(
subscription_id,
metadata=...
)

tacit notch
#

but doing subscription.modify 2 timnes can cause any conflict?

obsidian wadi
#

No conflict, why?