#Karthi
1 messages · Page 1 of 1 (latest)
Can you expand on what it is you're trying to do?
i have using stripe recursive payment...but payment succeed not get status
i have get customerid,
priceid, and sessionid
but paymentintentsucceed status messeage cant get
hi
Are you referring to the payment_intent.succeeded event?
yes
What is the pi_xxx ID?
did u mean price id?
cs_test_a15wmvy4YTaVc3otSoJrk6naRHXbMEIcpVYRcysOdtLZGfVXf7A6OYo4D8
Payment intent null geting
payment_intent will always be null in mode: 'subscription' sessions
ok
how can that mode 'subscription' payment is success
payment_intent.succeeded this event also not get
You'd listen for the related webhook events, like checkout.session.completed: https://stripe.com/docs/payments/checkout/fulfill-orders
Well, that's because there was no immediate payment due. The amount due on the initial Invoice was covered by the customer balance
Which is just how it works: https://stripe.com/docs/invoicing/customer/balance#working-with-credit-balances
hi
i have get
checkout.session.completed
but this transaction was success or failure i dont know... i sent the sample response
{
"object": {
"id": "cs_test_a1EQc4cggE9QhjloAICWTWOGTFn6PIIA0Tp9tLkdU4kYhdbsUUn3X6zuUQ",
"object": "checkout.session",
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": 1593,
"amount_total": 1593,
"automatic_tax": {
"enabled": false,
"status": null
},
"billing_address_collection": null,
"cancel_url": "https://localhost:4399/checkout?SessionId=A5400A&StatusID=Y2FuY2Vs",
"client_reference_id": null,
"consent": null,
"consent_collection": null,
"created": 1686043032,
"currency": "inr",
"currency_conversion": null,
"custom_fields": [
],
"custom_text": {
"shipping_address": null,
"submit": null
},
"customer": "cus_O200C7iLpw8ZP8",
"customer_creation": null,
"customer_details": {
"address": {
"city": "",
"country": null,
"line1": "",
"line2": null,
"postal_code": "",
"state": ""
},
"email": "selvendranm@info-tech.co.in",
"name": "Selvendran",
"phone": null,
"tax_exempt": "none",
"tax_ids": [
]
},
"customer_email": null,
"expires_at": 1686129432,
"invoice": "in_1NFw19LJDzyFtsXTgnIGa8j1",
"invoice_creation": null,
"livemode": false,
"locale": null,
"metadata": {
},
"mode": "subscription",
"payment_intent": null,
"payment_link": null,
"payment_method_collection": "always",
"payment_method_options": {
},
"payment_method_types": [
"card"
],
"payment_status": "paid",
"phone_number_collection": {
"enabled": false
},
"recovered_from": null,
"setup_intent": "seti_1NFw18LJDzyFtsXTyHN2pivy",
"shipping": null,
"shipping_address_collection": null,
"shipping_options": [
],
"shipping_rate": null,
"status": "complete",
"submit_type": null,
"subscription": "sub_1NFw19LJDzyFtsXTc3sBN2RW",
"success_url": "https://localhost:4399/checkout?SessionId=A5400A&StatusID=c3VjY2Vzcw==",
"total_details": {
"amount_discount": 0,
"amount_shipping": 0,
"amount_tax": 0
},
"url": null
}
}
The checkout session is complete. Payment processing may still be in progress
when will be payment success..
it will be take time or immediatly succes response will come?
it depends on what payment method was used. Use https://stripe.com/docs/payments/checkout/fulfill-orders#delayed-notification to check.
here it was a card payment, so the payment is immediate, so if the status is complete and the payment was with a card, then that's it, it is finished and done successfully
but the payment was inprogress?
then how can i decide the payment is success or failure
it says "status": "complete", so thats how you know
if status was complete na... payment is success correct?
if it was a card payment, yes
ok.. next time stripe will be automatically subscribe the amount correct if monthly subscriptionna?
yes
and what would the ID pi_xxx of that PaymentIntent be?
the payment_intent field on the CheckoutSession object would be null yes.
there might still be a PaymentIntent involved, for example on an Invoice that the Subscription creates.
Pending webhook response
A new payment pi_3NFwQiLJDzyFtsXT0ds5sO0T for ₹1,593.00 was created
Pending webhook response
A webhook that is subscribed to the event hasn't successfully responded yet
seems normal really, what's the question?
that PaymentIntent is from a CheckoutSession that you created but never completed.
yes
You need to access to that Checkout Session and complete it, using one of the tests cards :
https://stripe.com/docs/testing#international-cards
im using testcard like 4242424242424242
and what is the issue ?
im using the mode subscription
checkout.session.complete the event triggerd.. that event status was also complete. and payment_status aslo -- paid
but in stripe portal payment was incomplete
can you share the subscription id ?
This Subscription is active. Can you share the customer portal link ?
No this isn't a customer portal. Can you share a screenshot of this
Whare you are seeing it's not active there ?
payment screeen
wait
in payment screen it wil;l not there record
and previously i entered one transaction still is incomplete
For the invoice of that Subscription there was an applied balance:
https://dashboard.stripe.com/test/invoices/in_1NFxjpLJDzyFtsXTrfHELWKv
You can navigate to the Subscription. Scroll down and see all invoices.
You display the details of the invoice, and check for details in order to understand what's happening.
ok sure...
actualy this invoice transaction showing payment tab or not...
it will be show correct?
I don't understand you last question.
As I mentioned there wasn't any transaction/payment. The invoice is paid from the customer balance
Check this guide to understand that part:
https://stripe.com/docs/billing/customer/balance
ok sure and thanks
Happy to help!
one last question this trxn is success... correct?
Hi! I'm taking over this thread.
What do you mean by "this trxn is success"? Can you share the transaction ID you are talking about?
in subscription mode -- status is complete and payment_status is paid means it success .... correct?
sub_1NFxjpLJDzyFtsXTvc974qpj
can u check and update subscription tranaction is success or failure?
That subscription is active and the latest invoice is paid. So yes everything looks correct.
where is see the transaction history?
What do you mean by "transaction history"? The invoices for that specific subscription or something else?
which means payment history
I don't understand. Payment history of what? Your whole account? A customer? This subscription? Something else?
customer
Then you can check your customer object in the dashboard.