#ajit

1 messages · Page 1 of 1 (latest)

sly topazBOT
brisk gate
#

Hello! If you want to update an existing Subscription Item you need to pass in the ID of the one you want to update.

scarlet bluff
#

subscriptionId i am passinf

#

my question is reagrding items id

brisk gate
scarlet bluff
#

ok i understood

#

thanks

#

Also , i have one more question

#

I have created a customer and its customer id with price Id to subscription .

is the customer is chargeable on next cycle ? i don't see any option to add credit card

brisk gate
scarlet bluff
#

Actually , i did not made any request to stripe API . I am just creating subscription API . as of now i am just write code to subscribe a customer to stripe

#

let subscription = await stripe.subscriptions.create({
customer: organization.stripeCustomerId,
items: [{ price: plan.stripePriceId }
]
});

brisk gate
#

That code makes an API request to Stripe.

scarlet bluff
#

in above code , i did not passed credit card detail of customer

#

how will stripe charge the customer

brisk gate
#

Can you go into the Stripe Dashboard, navigate to Developer > Logs, and find the requests there?

scarlet bluff
#

i can see my old request that i used to create price

brisk gate
#

You may need to toggle the test mode switch in the upper right.

scarlet bluff
#

i ran the ui sample on my system

#

one time payment , i tried

#

subscription did not work