#elite0824

1 messages ยท Page 1 of 1 (latest)

hot bisonBOT
wind locust
#

Hi ๐Ÿ‘‹ you can't. You can't use a Payment Method that belongs to Customer A to pay for a Subscription that is associated with Customer B.

#

You would need to build your own logic for handling this. Likely something along the lines of:

  • Charge Customer A directly
  • Adjust the objects associated with Customer B's Subscriptoin based on your desired outcome. That could be voiding their most recent Invoice, marking it as paid out of band, for example.
sick turret
#

Could you explain more detail? If I do this, then is Customer B's subscription updated?

wind locust
#

It depends on what you're trying to do, and how you do it.

#

I would need more context on the flow you're envisioning to give more details on how you could achieve that.

sick turret
#

I want to implement sponsorship context for subscription.
I want to make one user can pay other user's subscription using his payment method.

wind locust
#

That's very high level, doesn't really give me much to discuss specifics about. I think at this point I'd suggest starting to play with this in testmode, and see how you can string the different options together to get the desired flow you're after.

Marking the Invoice Customer B's subscription as paid_out_of_band could help you indicate it's been paid without processing a payment for it:
https://stripe.com/docs/invoicing/overview#out-of-band-invoices

But I'm not sure what prebuilt reporting you're relying on, or whether doing so would impact the information shown in those.

Learn more about the basics of Stripe Invoicing.

sick turret
#

In stripe, I detached my payment method using card from customer. Then how can I reuse this card information for payment?

wind locust
#

You can't

#

Once you detach a Payment Method it can no longer be used

sick turret
#

If I recreate payment method using it then can i use it?

hot bisonBOT
floral mulch
#

๐Ÿ‘‹ stepping in here as toby needs to step away

#

You can't recreate a PaymentMethod using a detached PM

#

Once detached, it is consumed.

#

You would have to recollect the PaymentMethod from your customer