#r0zator
1 messages ยท Page 1 of 1 (latest)
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.
Can you share an example list request you're making?
but even the prices.list() doesn't return all the prices that exist in my dashboard and are active.
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?
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.
Do you have an example request id? eg req_123
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'
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Are you hitting the default limit of 10?
Are you supplying a higher limit value?
https://stripe.com/docs/api/request_ids to get request IDs, ro check your logs: https://dashboard.stripe.com/test/logs/
let me check, maybe the limit is the issue (I left the default one)
yeah, limit was the issue. thanks a lot.
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.
Have you confirmed the configuration being used currently?
https://stripe.com/docs/customer-management/activate-no-code-customer-portal#configure-portal
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)
It seems like the configuration is only enabling cancelation -- do you have the session id?
test_YWNjdF8xTEphM1lJVmxpUlAyU0h5LF9NekhWem5RV2x3WVlpeTQyd3BWdmpjeXdYYUtmdGtm0100grxiuFxZ
Hmm I cna't pull that up -- can you share another object from your account?
one of the subs is this one: sub_1MFATdIVliRP2SHyCSs5Ku8S
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?
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"
This should all be driving by the configuration you set, still checking on that
For example i see you setting configurations that only enable cancelation, not update etc
https://dashboard.stripe.com/logs/req_H87bZHzoede0aN
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:
- 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>?
- 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.
Are you collecting that payment method with a setup intent?
either via checkout or a custom flow?
Either way, once you have that you can set the customer invoice default payment method: https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This would then get used for subscription invoice payment
You can also set the default_payment_method on the subscription, if preferred
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.
ok great
but I still don't understand understand how to make the user pay the subscriptions after creating unpaid ones
You can retrieve the subscription latest_invoice and call /pay using that payment method:
https://stripe.com/docs/api/invoices/pay#pay_invoice-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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)?
You can set that on the common customer: https://stripe.com/docs/api/customers/update#update_customer-shipping
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
same question goes for the billing address
Billing address belongs to the payment method itself:
I can do that with stripe elements?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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:
thanks a lot!