#Karthi

1 messages · Page 1 of 1 (latest)

uncut schoonerBOT
oak phoenix
#

Can you expand on what it is you're trying to do?

lean flare
#

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

oak phoenix
#

Are you referring to the payment_intent.succeeded event?

lean flare
#

yes

oak phoenix
#

What is the pi_xxx ID?

lean flare
#

did u mean price id?

oak phoenix
#

No, the ID of the Payment Intent

#

The cs_xxx is fine too (Checkout Session)

lean flare
#

cs_test_a15wmvy4YTaVc3otSoJrk6naRHXbMEIcpVYRcysOdtLZGfVXf7A6OYo4D8

#

Payment intent null geting

oak phoenix
#

payment_intent will always be null in mode: 'subscription' sessions

lean flare
#

ok

#

how can that mode 'subscription' payment is success

#

payment_intent.succeeded this event also not get

oak phoenix
oak phoenix
uncut schoonerBOT
lean flare
#

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
}
}

normal ice
#

it says "status": "complete", so thats how you know

lean flare
#

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?

normal ice
#

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

lean flare
#

but the payment was inprogress?

#

then how can i decide the payment is success or failure

normal ice
#

it says "status": "complete", so thats how you know

lean flare
#

if status was complete na... payment is success correct?

normal ice
#

if it was a card payment, yes

lean flare
#

ok.. next time stripe will be automatically subscribe the amount correct if monthly subscriptionna?

normal ice
#

yes

lean flare
#

But i see the stripe portal that paymnent was incomplete

normal ice
#

and what would the ID pi_xxx of that PaymentIntent be?

lean flare
#

mode will be subscription

#

if mode subscription pi will be null correct

normal ice
#

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.

lean flare
#

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

normal ice
#

seems normal really, what's the question?
that PaymentIntent is from a CheckoutSession that you created but never completed.

lean flare
#

yes

spark hearth
lean flare
#

im using testcard like 4242424242424242

spark hearth
#

and what is the issue ?

lean flare
#

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

spark hearth
#

can you share the subscription id ?

lean flare
#

yes

#

sub_1NFxjpLJDzyFtsXTvc974qpj

spark hearth
#

This Subscription is active. Can you share the customer portal link ?

lean flare
spark hearth
lean flare
spark hearth
#

Whare you are seeing it's not active there ?

lean flare
#

payment screeen

#

wait

#

in payment screen it wil;l not there record

#

and previously i entered one transaction still is incomplete

spark hearth
spark hearth
# lean flare

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.

lean flare
#

ok sure...

spark hearth
#

Happy to help!

#

That's why you are not seeing any payment records.

lean flare
#

actualy this invoice transaction showing payment tab or not...

#

it will be show correct?

spark hearth
#

I don't understand you last question.

lean flare
#

here not shown the transaction

#

amount 5.90

spark hearth
#

As I mentioned there wasn't any transaction/payment. The invoice is paid from the customer balance

lean flare
#

ok sure and thanks

spark hearth
#

Happy to help!

uncut schoonerBOT
lean flare
#

one last question this trxn is success... correct?

true elm
#

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?

lean flare
#

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?

true elm
#

That subscription is active and the latest invoice is paid. So yes everything looks correct.

lean flare
#

where is see the transaction history?

true elm
#

What do you mean by "transaction history"? The invoices for that specific subscription or something else?

lean flare
#

which means payment history

true elm
#

I don't understand. Payment history of what? Your whole account? A customer? This subscription? Something else?

lean flare
#

customer

true elm
#

Then you can check your customer object in the dashboard.