#chandan_99459
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- chandan_99459, 16 hours ago, 16 messages
- chandan_99459, 20 hours ago, 21 messages
- chandan_99459, 3 days ago, 4 messages
👋 @rocky wing How can I help?
can you explain me how payment pending status related with webhook
@rocky wing which integration type are you using? Payment Intent or Checkout Session?
Paymentsheet
I had follow the step provide by your team
i'm not able to understand how will 5 step will work in the case of client end becuz i'm implementing these in android
I see! If you're referring to the Step 5 of this guide: https://stripe.com/docs/payments/accept-a-payment?platform=android&ui=payment-sheet#android-post-payment, this is for server side. This means that your server should set up a Webhook endpoint and listen to the event sent by Stripe. In case of the asynchronous payment method, you will listen to payment_intent.* events for the payment outcome.
I'm able to get the response of success and canceled and failed but not able to get the status of pending in the case user money deducted from user account but not reached to us. How webhook will implement
Webhook should be set up at server side. Here's the guide to implement webhook: https://stripe.com/docs/webhooks/quickstart
ok as i have seen the webhook through this link
what param need to pass in the endpoint
becuz it''s not mention there
The input parameter should be the request of your language chosen. It'll then mapped to the corresponding object after parsing the request with using Stripe's library.
Which language is used at your server?
php
Here it is: https://stripe.com/docs/webhooks/quickstart?lang=php
The input parameter will be the payload of the request sent from Stripe:
$payload = @file_get_contents('php://input');
Ok it's about webhook
if backend developer make the webhook api then in which step i need to call that api for showing the pending status to the user
Ah I see what your problem is now! When PaymentSheetResult.Completed is invoked, it can be successful or pending payment. At this point, you won't know the status of the Payment Intent unless you make an additional call to your server and retrieve the payment intent status from Stripe. The pending status then can show to the customer after checking the payment intent status.
For the Webhook at Step 5, it explains how you can get the payment intent outcome after customer completing the payment (please note that complete here means finishing the payment, but it doesn't mean that the payment outcome is guaranteed for asynchronous payment method).