#RON WAFFLE - products

1 messages · Page 1 of 1 (latest)

wheat whale
#

Hi! So you want to use the Payment Element to pay for both a subscription and a one time purchase?

slim sedge
#

If possible ye

#

I'm trying to figure out if I'm even using the right thing. but ideally payment element should be able to take products I give it

wheat whale
#

Note that Stripe has a thing called "product", however that only works with Checkout Sessions, not PaymentIntent & PaymentElement.

#

But yes what you are describing is possible to do with the Payment Element. There are two options:

#
  1. Create a SetupIntent, collect payment information with Payment Element, and then use the payment method to create both the subscription and the one time purchase
  2. Create an invoice item for the one time purchase, then create a subscription (that will automatically include the invoice item), and then use the Payment Element to pay for the subscription.