#harsha

1 messages · Page 1 of 1 (latest)

wooden houndBOT
left leaf
#

Hi there, can you be more specific? what kind of payment method are you talking about?

spare spruce
#

In general, once I make payments on client checkout on success/failure we will get paymentIntent, error. Instead of directly relying on a response coming from the client i.e. paymentIntent. How do I verify that payment Intent is valid on the server to mark payment successful on the server end?

left leaf
#

You should never rely on the response from client. Instead you should listen to payment_intent.succeeded and payment_intent.payment_failed webhook events instead.

spare spruce
#

@left leaf thanks

left leaf
spare spruce
#

@left leaf I'm aware of webhooks. But I have seen some different implementations on Razorpay gateway. Where they verify payments without webhooks.

#

So I thought stripe may also implementing that

#
generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret);

  if (generated_signature == razorpay_signature) {
    payment is successful
  }

left leaf