Implement Stripe Phase 2

This commit is contained in:
gpt-engineer-app[bot]
2025-10-10 23:01:23 +00:00
parent 908b09a1b1
commit cec20ed332
4 changed files with 399 additions and 150 deletions

View File

@@ -201,12 +201,17 @@ const OrderConfirmation = () => {
<div className="flex items-center text-blue-800">
<CheckCircle className="w-5 h-5 mr-2" />
<span className="font-medium">
Pago procesado via {orderData.paymentInfo.method === 'credit_card' ? 'Tarjeta de Crédito' : orderData.paymentInfo.method}
Pago procesado via {
orderData.paymentInfo.method === 'credit_card' ? 'Tarjeta de Crédito' :
orderData.paymentInfo.method === 'paypal' ? 'PayPal' :
orderData.paymentInfo.method === 'bank_transfer' ? 'Transferencia Bancaria' :
'Efectivo'
}
</span>
</div>
{orderData.paymentInfo.cardLast4 && (
<p className="text-sm text-blue-700 mt-1">
Tarjeta terminada en {orderData.paymentInfo.cardLast4}
{orderData.paymentInfo.paymentIntentId && (
<p className="text-xs text-blue-700 mt-2 font-mono">
ID de Transacción: {orderData.paymentInfo.paymentIntentId}
</p>
)}
</div>