#Marco Túlio Rocha-subscriptions

1 messages · Page 1 of 1 (latest)

spare pond
#

Hi 👋 can you clarify what you mean by "transparent checkout"?

stoic stirrup
#

I have a customized screen where I choose and inform the payment data, (card, invoice or bill), all will be recurring, monthly or annual subscription..

I would like to understand how I create the signatures without directing you to a screen.

understand?

spare pond
stoic stirrup
#

const subscription = await stripe.subscriptions.create({
customer: customerId,
items: [{
price: priceId,
}],
payment_behavior: 'default_incomplete',
expand: ['latest_invoice.payment_intent'],
});

#

What is the parameter to indicate if it is a card or a ticket?

spare pond
#

I'm not sure what you're referring to by "ticket", but nothing in that code limits the payment options that can be used to pay the invoices for that subscription. That would be controlled by the payment_settings.payment_method_types parameter:
https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-payment_method_types

stoic stirrup
#

thanks for listening.
see, I need through this screen, integrate the monthly or annual subscription...

spare pond
#

Gotcha, and what's the problem that you're running into?

stoic stirrup
#

I'm not understanding the steps to follow, I'm from Brazil and I'm using google translator, sorry for using.

Would these be steps?.

  1. stripe.customers.create()
  2. stripe.subscriptions.create()
spare pond
#

Those are the key pieces for creating a subscription. The specifics will change depending on the flow that you're trying to accomplish though.

If it's easier to work in your preferred language, then you can contact our support team as they have a wider set of languages they can work in:
https://support.stripe.com/?contact=true

stoic stirrup
#

no problem, it can be here...
your chat is offline

in addition to these steps, would I have to record the card data before signing?

  1. stripe.customers.create()
  2. CREATE CARD ????
  3. stripe.subscriptions.create()
spare pond
#

For card payments, yes you will need to collect payment details to create a Payment Method and attach that to the customer. When you should create it depends on your flow. You can also use Checkout to handle most of this for you, though it won't work as well if you want a flow where customers can be invoiced and pay that later.
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=checkout

Create and manage subscriptions to accept recurring payments.