#menkuichan_73425

1 messages · Page 1 of 1 (latest)

amber warrenBOT
#

Hello menkuichan_73425, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
menkuichan_73425, 22 hours ago, 5 messages
menkuichan_73425, 1 day ago, 8 messages
menkui-subscription-draftinvoice, 2 days ago, 13 messages
menkuichan_73425, 2 days ago, 5 messages
menkuichan_73425, 3 days ago, 8 messages
menkuichan_73425, 3 days ago, 12 messages
and 1 more

wanton nacelle
#

Hi 👋 that error is most typically seen whn you're trying to use an object from another Stripe account. Can you share the ID of a request where you saw that error returned?

pale granite
#

I checked source details and I see that id and user name at "Card details" are correct.

req_knh4fL0um3WzV3 - request id

amber warrenBOT
wanton nacelle
#

Hm, I think that's happening because the source isn't attached to the Customer that you're creating the Subscription for.

pale granite
#

Good point.
I should request something like this?

await stripe.paymentMethods.attach(cardId, {
customer: customerId,
});

wanton nacelle
#

That might work, but your integration seems to be working with Sources rather than Payment Methods, so you may need to use one of the approaches shown here:
https://stripe.com/docs/sources/customers#reusable-sources
but I don't think that will work in this case, since that source appears to have been consumed before it was attached to a Customer. That should prevent it from being usable again.

pale granite
#

I noticed that this source has "Status: consumed".
So there is no way to reuse it, right?

wanton nacelle
#

Correct

pale granite
#

Okay.
And I don't have any way to charge my user if his source has this status?

wanton nacelle
#

Not if that is their only source.

pale granite
#

They don't have any other payment method.

blazing finch
#

Hi taking over here

#

Give me a bit to catch up

#

Yep so in this case, you'll need to collect new payment details from the customer

#

And make sure to attach the PM to the customer object when doing so

pale granite
#

You helped a lot.
Thanks.