# Payment Success Dialog
URL: /docs/components/payment-success-dialog
A confirmation dialog that celebrates a successful payment with the paid amount and product name, plus actions to proceed or go back.
***
title: Payment Success Dialog
description: A confirmation dialog that celebrates a successful payment with the paid amount and product name, plus actions to proceed or go back.
--------------------------------------------------------------------------------------------------------------------------------------------------
```tsx title="src/components/payment-success-dialog-demo.tsx"
"use client";
import { useState } from "react";
import { PaymentSuccessDialog } from "@/components/billingsdk/payment-success-dialog";
import { Card, CardContent } from "@/components/ui/card";
export function PaymentSuccessDialogDemo() {
const [, setLastAction] = useState("");
const [open, setOpen] = useState(false);
return (