#supercodepoet - subscriptions
1 messages · Page 1 of 1 (latest)
Hello, looking in to this. Can you clarify your first question on the payments section of the dashboard? Are you just asking how to make one-off payments directly in the API or is there some other aspect of the dashboard behavior that you are trying to replicate?
yeah, I would like to make one off payments using the API using the existing payment method on the account. I tried using Charge but it would not allow charges that were not credit card
You can use the payment intents API to do that, that is the one that the dashboard uses https://stripe.com/docs/payments/save-and-reuse?platform=web#charge-saved-payment-method
You can probably also use charges directly but that is more of a legacy process, doing this with payment intents is the current best practice
Looking in to your custome portal question...
ahhh, thank you
yeah, would love to use the customer portal for all this
but need to be able to allow upgrading quantities on the customer's current plan, even if it is legacy plan.
need to be able to allow only upgrade on plans
and only to upgrade to active plans
I assume if I archive a plan that behind the scenes its active bit is flipped to. false so it can't be sold but can still be charged and quantities updated on it even though it is legacy
If I understand your requirements correctly, you should be able to do that by limiting your portal's product catalog https://stripe.com/docs/billing/subscriptions/integrating-customer-portal?platform=API#set-product-catalog
And I think you can control proration behavior for updates as well. Double checking on that
excellent, I did not realize you could change the Customer Portal configuration on a session-by-session basis, that is awesome
thank you so much for your help. I will be playing around with this. I just say the configuration in the Dashboard and thought it was global
Glad you found this then! Very useful tool especially when you want finer-grained control like this
Does this all address the initial questions that you came here with?
I think so. I assume that whatever I do not set in the custom configuration with the API it will use the global configuration
I actually don't think that is the case. I think each value has their defaults in the API and it will stay as what they are set to even if you change the dashboard setting after
You can provide the ID of your account's settings as a baseline when creating them at least. https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-configuration
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Trying to find confirmation on how settings that you don't explicitly set work