#oleg.moseiko

1 messages ยท Page 1 of 1 (latest)

kind lilyBOT
quasi rock
#

Hello ๐Ÿ‘‹
Is this extra storage plan a one-time add on OR recurring?

sullen idol
#

the Extra Storage is annual/monthly price

#

recurring

kind lilyBOT
quasi rock
#

So just to make sure I am on the same page, the customer would be charged $10 as usual plus the additional amount $5 for extra storage plan correct?

sullen idol
#

yes

quasi rock
sullen idol
#

ok

#

in this case can customer choose quantity?

#

1 TB/ 2/TB ....?

magic sphinx
#

Hello! I'm taking over and catching up...

#

Yeah, they can choose if you build a UI for them to do that, then make the approprate Subscription updates based on their selection.

sullen idol
#

build a UI for them??

#

can i do it by stripe?

#

like CheckoutSession UI?

magic sphinx
#

No, we don't have a UI component available that would let someone select options the way you've described.

#

You would have to build it on your end.

sullen idol
#

but if customer choose 10TB in my UI then i will subscription_items/create but there is not enough money on the customer's card?

magic sphinx
#

Then you'll get a decline.

sullen idol
#

And how can a customer know that he has enough money?

#

he must try 9

magic sphinx
#

Cardholders are typically aware of how much money they have available to spend.

sullen idol
#

๐Ÿ’ฉ

#

i think subscription_items/create must work like CheckoutSession

#

where customer can choose
'quantity' => $params['minimum'] ?? 1,
'adjustable_quantity' => [
'enabled' => true,
'minimum'=> $params['minimum'] ?? 1,
]

magic sphinx
#

Not sure I understand?

sullen idol
#

if i use CheckoutSession it return me url

magic sphinx
#

Yes.

sullen idol
#

and i can open dialog

magic sphinx
#

Dialog?

sullen idol
#

where user can choose quantity

magic sphinx
#

Yeah, you can do adjustable quantities in Checkout.

sullen idol
#

but why for subscription_items i can'N have the same

magic sphinx
#

You can? I'm not following, sorry. Have you tried this?

sullen idol
#

i can'N

#

instead i need to create my custom UI

magic sphinx
#

As I understand it you want people to be able to add arbitrary items to a Subscription in Checkout, right?

#

Not adjust quantities?

sullen idol
#

no

#

i would like to get url after call subscription_items and use it to open stripe UI where user can chose quantities

magic sphinx
#

I thought you said earlier:

For this case i have Extra Storage Plan with with month price $5.

sullen idol
#

i don't want to create my own UI where customer will cheose quantity

magic sphinx
sullen idol
#

cool idea but before i need to add new subscription_item with ExtraStorage price

#

and to do it need CREATE MY OWN UI where user will choose quantity

magic sphinx
#

Yeah, because that's not a quantity change, that's adding an entirely new item.

sullen idol
#

i woul be good if i can have url from subscription_items
to show stripe dialog with quantity

#

like Checkout

magic sphinx
#

You can configure a Checkout Session to allow your customers to change the quantity of existing items, but we don't have the ability for your customers to add new items.

sullen idol
#

OK

#

ok i create my own UI to choose quantity but user want to pay by other card

#

do i need to add my own UI to choose card in this case?