switched to paddle inline checkout, removed paypal and most of stripe. added product sync between app and paddle.
This commit is contained in:
@@ -13,9 +13,10 @@ class PackageFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
$name = $this->faker->word();
|
||||
|
||||
return [
|
||||
'name' => $name,
|
||||
'slug' => Str::slug($name . '-' . uniqid()),
|
||||
'slug' => Str::slug($name.'-'.uniqid()),
|
||||
'description' => $this->faker->sentence(),
|
||||
'price' => $this->faker->randomFloat(2, 0, 100),
|
||||
'max_photos' => $this->faker->numberBetween(100, 1000),
|
||||
@@ -29,6 +30,9 @@ class PackageFactory extends Factory
|
||||
'advanced_analytics' => $this->faker->boolean(),
|
||||
]),
|
||||
'type' => $this->faker->randomElement(['endcustomer', 'reseller']),
|
||||
'paddle_sync_status' => null,
|
||||
'paddle_synced_at' => null,
|
||||
'paddle_snapshot' => null,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -59,4 +63,4 @@ class PackageFactory extends Factory
|
||||
'type' => 'reseller',
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user