#Mathankumar-payment
1 messages · Page 1 of 1 (latest)
ss, I need to show the payment failed info to my customer in my product!
Yes, use the List Payment Intent API above!
I need failed payment detail to show which status I am going to check in that object?
The PaymentIntent has a status property
I know, my question is, I need to take failed payment by checking the status so what do I need to check in status
?
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status
The status requires_payment_method could be what you wanted
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
requires_payment_method is like payment failed
Yes
Is any other status for payment failed or this is the only one to understand payment failed?
This is the only one. You can find more detail in https://stripe.com/docs/payments/intents#intent-statuses
In this query i need get only particular customers intent how can i change this
$stripe = new \Stripe\StripeClient(config('secret_key')); $data = $stripe->paymentIntents->all(['limit' => 3]);
Looks here: https://stripe.com/docs/api/payment_intents/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You have a parameter customer
Is any way to check the subscription also?
What do you want to check for a subscription?
particular subscription payment failed info
You can retrieve the Subscription and expand latest_invoice.payment_intent field. The failed info will be under latest_invoice.payment_intent:
- Subscription Retrieval: https://stripe.com/docs/api/subscriptions/retrieve
- Expanding
latest_invoice.payment_intent: https://stripe.com/docs/api/expanding_objects
when I update trial_end for example** trial_end => Oct 1st** after the trial, the plan will continue from Oct 1st to Nov 1st??
Yup, subscription will continue
like this date will continue from Oct 1st to Nov 1st??
Yes, the next subscription cycle will start from Oct 1 to Nov 1
From the API I added trial_end (trial period) but if the customer update his plan in customer portal how can i add trial period?
I don't think you can.
how can i do this?
you'd like to add a trial period to the subscription when the customer changes the pricing plan in the customer portal?
they changing in stripe portal how can do that?
I don't think you can. The plan change would just happen. Can you explain the exact use case and intention there? Maybe there's a workaround.
we have two plans starter(free plan) and pro (cost), If Customers in the starter plan from Oct 1st and now change to the pro plan, In this scenario, I need to add a trial period from Oct 9th to Sep 1st and after they continued with cost(pro plan). Now add this logic in my API but I don't know how to do this when a customer changes his plan in the customer portal ?
I don't think you can, it's just not something the portal supports.
Is this scenario is common or it's new here for you?