#Marco Túlio Rocha-subscriptions
1 messages · Page 1 of 1 (latest)
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?
Sorry, no I don't. This guide walks through how to create a Subscription. It uses Stripe Elements to collect payment information, but I'm not sure if that's what you're looking for.
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
Create and manage subscriptions to accept recurring payments.
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?
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks for listening.
see, I need through this screen, integrate the monthly or annual subscription...
Gotcha, and what's the problem that you're running into?
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?.
- stripe.customers.create()
- stripe.subscriptions.create()
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
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
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?
- stripe.customers.create()
- CREATE CARD ????
- stripe.subscriptions.create()
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.