razorpay-react-sdk
Version:
A simple Razorpay integration package for React & Next.js with TypeScript support.
20 lines (19 loc) • 638 B
TypeScript
/**
* A successful payment returns the following fields to the Checkout form.
* You need to store these fields in your server.
* You can confirm the authenticity of these details by verifying the signature in the next step.
*/
export type PaymentResponse = {
/**
* Unique identifier for the payment returned by Checkout only for successful payments.
*/
razorpay_payment_id: string;
/**
* Unique identifier for the order returned by Checkout.
*/
razorpay_order_id: string;
/**
* Signature returned by Checkout. This is used to verify the payment.
*/
razorpay_signature: string;
};