#ekta
1 messages ยท Page 1 of 1 (latest)
let subscriptionData = {
// customer: inputs.customer,
customer: "34",
currency: "inr",
price: "sdfs",
};
// create subscription
const subscription = await stripe.subscriptions.create({
customer: subscriptionData.customer,
items: [
{ price: subscriptionData.price}
],
description: "hello",
});
but memo is not display in invoice
we want text in yellow area in suscription
we want text in yellow area in suscription
I'm sorry I still don't understand what you are trying to do. Do you want to add some custom text to the invoices created by the subscription?
You could set some custom fields on the customer object here: https://stripe.com/docs/api/customers/create#create_customer-invoice_settings-custom_fields
And they will be automatically added to the invoice of the customer
this can not help because it is for customer... can you help me with add this description as memo in subscription?
this can not help because it is for customer...
Each subscription is for a specific customer. And if you setcustom_fieldsfor the customer (as mentioned above), then all invoices for the subscription will contain the message.
I don't think you can directly change the memo using the API.
That's why I recommend using custom_fields
it allows only 30 charcters
๐ taking over for my colleague. Let me catch up.
correct
can you help me?
memo is not display in invoice while create in subscription
the description field doesn't appear in the invoice
as my colleague explained you need to use the custom_fields
how to add memo in subscription invoice?
please follow the instructions here
no we dont want data in custom feilds as it dispay in customer info ..in invoice
i want data that feel in this memeo
if you're talking about the memo of the Invoice you can update the invoice https://stripe.com/docs/api/invoices/update#update_invoice-description and set the description on the invoice directly
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
we create subsription at instant payment so that we can not update invoice
is there any way?
let me double check for you plaese
we are facing this issue since very long...
yeah I'm terribly sorry about that
Hi there ๐ apologies for the delay. I'm jumping in to lend a hand, please bear with me a moment while I catch up on the context here.
As my colleague mentioned above the only option is to use custom_field that's the only option to display custom fields in the invoice
cant we add memo in subscription?
Using API no, the memo you are seeing the dashboard, is a Dashboard only feature
so when we create checkout session and customer pay that, and generate invoice, at that time can i add time preriod
i attached sample file how can we add time period in checkout session
That's generated automatically by the Subscription, you can't override it or set it using API
ok...
have other issue, we are creating payment using checkout session and generate invoice, at that time can i add time rang.
we want to add like this but not able to add time... can you help
The only option to customize the subscription's invoice is to use the custom fields of the customer,
https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-custom_fields
@rough tangle please let's keep talking in this thread.
ave other issue, we are creating payment using checkout session and generate invoice, at that time can i add time rang.
we want to add like this but not able to add time... can you help
not subscription
๐ซ
You can update the one time invoice and add custom fields:
https://stripe.com/docs/api/invoices/update#update_invoice-custom_fields
But you can't add time range