Hello,
I’m trying to sync Stripe prices with Kirby.
After getting datas from Stripe API, I create a new page.
Is it possible to use Stripe price ID as Kirby page UUID ?
Thanks
Yes, if you set the value at page creation, it shouldn’t be a problem
I use page models for such tasks. This example matches the same Id/Uuid/whatever with both page uuid and slug.
public static function create(array $props): Page
{
$id = self::generateID();
return parent::create(array_replace_recursive($props, [
'slug' => $id,
'content' => [
'uuid' => $id,
],
]));
}
Thanks, it works perfectly !