Add PayPal, Stripe, CSV-Export; fix .env.production issue
Deploy to Production (witstore.wende.it) / deploy (push) Successful in 7s
Deploy to Production (witstore.wende.it) / deploy (push) Successful in 7s
- PayPal: Checkout-Integration via srmklive/paypal, Weiterleitung zu PayPal, Bestellung wird nach Capture automatisch auf payment_received gesetzt - Stripe: Payment Elements im Checkout, Intent-API, Zahlung direkt bestätigt - CSV-Export: Admin → Bestellungen → CSV exportieren (UTF-8 BOM für Excel) - PayPal/Stripe nur sichtbar wenn Keys in .env gesetzt - .env.example um PAYPAL_* und STRIPE_* Keys erweitert Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
class Order extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'order_number','user_id','guest_email','status','payment_method',
|
||||
'order_number','user_id','guest_email','status','payment_method','payment_id',
|
||||
'coupon_code','discount_amount',
|
||||
'subtotal','tax_total','shipping_cost','total','tracking_code','notes','paid_at',
|
||||
];
|
||||
@@ -35,6 +35,8 @@ class Order extends Model
|
||||
public static array $paymentLabels = [
|
||||
'prepayment' => 'Vorkasse',
|
||||
'invoice' => 'Rechnung',
|
||||
'paypal' => 'PayPal',
|
||||
'stripe' => 'Kreditkarte (Stripe)',
|
||||
];
|
||||
|
||||
public function user(): BelongsTo
|
||||
|
||||
Reference in New Issue
Block a user