#bart-subscription-id
1 messages · Page 1 of 1 (latest)
bart-subscription-id
Hey @honest shore ! The id doesn't change between cycles! A new Invoice in_123 is created each cycle to accept a payment for that specific cycle/period but the Subscription id sub_123 stays the same
thank you!
one quick question
if err != nil {
log.Fatalf("Error retrieving subscription: %v", err)
}
fmt.Println("Subscription Information:")
fmt.Println("ID:", subscription.ID)
fmt.Println("Customer ID:", subscription.Customer.ID)
fmt.Println("Status:", subscription.Status)```
how can i get the phone number the user inputed?
What's the context? Like how do you collect the phone number in the first place?
so in my subscription link
i request phone number
how can i get the phone number that was entered in the subscripton
what does that mean "my subscription link".
i generated that subscription link
from the website
and in that subscription link i request the users phone number
Okay so you use PaymentLinks.
yes
So that PaymentLink plink_123 will be associated with a Checkout Session cs_test_123 for that specific payment by a Customer. And that will be associated to the created Subscription sub_123
The phone number should be saved on the Customer that is associated to the Subscription in https://stripe.com/docs/api/customers/object#customer_object-phone
yes, look at it in the Dashboard or the API and you should see it
i got it! thank you so much