#bhanu365-proration
1 messages ยท Page 1 of 1 (latest)
You'd pass proration_behaviour when making the update: https://stripe.com/docs/billing/subscriptions/prorations
The way it works is we credit for unused time on the old plan, and bill for a prorated amount on the new plan according to the remaining time
๐ taking over for my colleague. Let me catch up.
unless the Payment fails and requires_action no you don't need to
but this is also subject to having a default payment method, either on the subscription or on the customer's invoice_settings.default_payment_method
Ok, If the payment fails from any reason, then I have to update the card details from the customer right?
unless the payment will be deducted from the default payment method everytime
?
@rustic willow
you have 2 options
either send them to the Customer Portal to collect a new payment method
or build your own page where you use Stripe Elements with the PI from that invoice
you can find it either directly on the invoice payment_intent.client_secret
or on the Subscription latest_invoice.payment_intent.client_secret
you might need to expand in each case to get to the client_secret
https://stripe.com/docs/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ch_3LZw8uFmM52WOkSo0quwSS3o
What is this parameter?
What is this parameter?
do you mean the Charge id?
Because I don't want to use it
I need my own page
ok
PaymentIntents are built on top of the Charges API
so basically each PI would have at least one if not multiple Charges
How I can get the card details so when any customer want to upgrade their subscription we can show their card details before the upgradation.
that's not possible
and it's not PCI compliant
once the User passes the Card info we tokenize it and we don't store the info as is
Hi there ๐ jumping in so my teammate can take a break. If you're referring to viewing the information regarding a Customer's existing Payment Method, then you can retrieve the associated Payment Method object and review the available information for it. If you're working card payment methods, then the card hash is probably going to be what you're looking for.
https://stripe.com/docs/api/payment_methods/object#payment_method_object-card
https://stripe.com/docs/api/payment_methods/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.