Link existing Paddle IDs
This commit is contained in:
@@ -152,6 +152,16 @@ class Package extends Model
|
||||
return is_string($message) && $message !== '' ? $message : null;
|
||||
}
|
||||
|
||||
public function linkPaddleIds(string $productId, string $priceId): void
|
||||
{
|
||||
$this->forceFill([
|
||||
'paddle_product_id' => $productId,
|
||||
'paddle_price_id' => $priceId,
|
||||
'paddle_sync_status' => 'linked',
|
||||
'paddle_synced_at' => now(),
|
||||
])->save();
|
||||
}
|
||||
|
||||
public function getActivatesImmediatelyAttribute(): bool
|
||||
{
|
||||
// Default: Pakete werden nach Kauf sofort freigeschaltet (digitale Dienstleistung).
|
||||
|
||||
Reference in New Issue
Block a user