#r0zator

1 messages ยท Page 1 of 1 (latest)

remote pebbleBOT
cloud vault
#

Even when trying do delete from dashboard I get this

#

and then I hit cancel, refresh the dashboard and it dissapeaars

#

I deleted now the prices on the product, added them back...and now it invalidated the prices on other products. Not sure what is happening :)). Is it due to me adding in the metadata of a product, another stripe's product id?

#

I have on my products this. Maybe beacuse of the reference it messes with everything? Not sure what to do, but it messes with my entire flow.

manic raven
#

Can you share an example list request you're making?

cloud vault
#

but even the prices.list() doesn't return all the prices that exist in my dashboard and are active.

manic raven
#

invalidated the prices on other products
I really don't understand what you mean here -- can you explain more what requests you're making and what is is happening unexpectedly?

cloud vault
#

ok so just to state it really simple - stripe.prices.list() doesn't send me back all the prices that I have on my products.

#

sometimes it sends, sometimes doesn't. randomly. currently I have products where 3 prices per each product => and I get returned (from the prices.list() endpoint) only 1 price out of 3.

manic raven
#

Do you have an example request id? eg req_123

cloud vault
#

how can I get that?

#

I am using the stripe node sdk

#

on the response i get only object, data, has_more, url

#

has_more comes with true and url comes with 'v1/prices'

manic raven
#

Are you hitting the default limit of 10?

#

Are you supplying a higher limit value?

cloud vault
#

let me check, maybe the limit is the issue (I left the default one)

#

yeah, limit was the issue. thanks a lot.

manic raven
#

NP!

#

@cloud vault you can keep asking the other question here ๐Ÿ™‚

cloud vault
#

Ah ok, sorry. Deleting and moving here

#

How can I enable in the customer dashboard (the low-code one) - for a user to be able to edit one of his subscriptions?
So for example I have a subscription that has a single price - monthly recurrence => that doesn't need to be editable.
I have also a subscription that has a product wit 3 prices (3 different billing periods) -> user should be able to edit that in the customer dashboard offered by stripe and move from a price (billing period, because price is the same) to another one

I see that currently the only option the user has is to cancel the subscriptions.

manic raven
cloud vault
#

I have created the one that is based on customer id. So each customer can fetch their own customer portal.

#

and I have this

#

and I just need to be able to edit the plan if possible

#

to change between the billing periods (aka pricings)

manic raven
#

It seems like the configuration is only enabling cancelation -- do you have the session id?

cloud vault
#

test_YWNjdF8xTEphM1lJVmxpUlAyU0h5LF9NekhWem5RV2x3WVlpeTQyd3BWdmpjeXdYYUtmdGtm0100grxiuFxZ

manic raven
#

Hmm I cna't pull that up -- can you share another object from your account?

cloud vault
#

try this one

#

not sure what you mean by another object

manic raven
#

one of the subs is this one: sub_1MFATdIVliRP2SHyCSs5Ku8S

cloud vault
#

Yes, there are 2 subscriptions (on that test customer):

  • sub_1MFJ7MIVliRP2SHyp3qVQIlb - I should be able to edit this one, I have 3 prices (diff billing periods) set on the underlying product
  • sub_1MFATdIVliRP2SHyCSs5Ku8S - I should not be able to edit this one, I have only 1 price set on the underlying product
#

but on that session I can only "cancel" the subs. so asking - how can I enable editing?

cloud vault
#

Also, is there any way in which I can disable the "cancel" button? something like "if you want to cancel this subscription, please contact us"

manic raven
#

This should all be driving by the configuration you set, still checking on that

cloud vault
#

Understood, so I need to configure it somehow on the dashboard. Will look more

#

@manic raven Another situation - I need to create multiple subscriptions for a single user.

  • I am gonna collect the payment method upfront
  • I am going to create 2 unpaid subscription and return the payment_intent client_secret

Q:

  1. How can I instantiate the payment of both of the subscriptions? User will have to do 2 separate checkouts/payments? What method(s) should i use>?
  2. If I collect upfront on my end a shipping address - how can I inject that when the user is paying? Can I inject that upfront, or the user has to fill the shipping address each time a payment is being done by the user?
#

in the image you can see how I create 2 subscriptions.
I need only for one of the subscriptions a shipping address.

manic raven
#

Are you collecting that payment method with a setup intent?

#

either via checkout or a custom flow?

#

This would then get used for subscription invoice payment

#

You can also set the default_payment_method on the subscription, if preferred

cloud vault
#

I am collecting the payment method via a custom card element from stripe, with a setup intent that is saving automatically on the customer a card.

manic raven
#

ok great

cloud vault
#

but I still don't understand understand how to make the user pay the subscriptions after creating unpaid ones

manic raven
cloud vault
#

and will collect automatically in the backround the payment without a checkout? goood then

#

and what about the shipping address?

#

how can I add that automatically to customer account if I collect it upfront (the shipping and billing address)?

manic raven
cloud vault
#

same question goes for the billing address

manic raven
#

Billing address belongs to the payment method itself:

cloud vault
#

I can do that with stripe elements?

manic raven
#

If you're using the Payment Element, some payment method types have required billing details which are collected automatically, but generally you will be collecting these details

#

If you collect them in your app before the setup intent confirmation, you can supply those when you do that:

cloud vault
#

thanks a lot!