Error creation catalogObject (subscription)

Thanks for help, i created my subscription, i will try full process now.

But I still have one issue about card_id, i am using basic payment in JS.
How should I retrieve card_id ? I dont see in response when user submit credit card …

I am trying to link card object to my customer, but during creation card i have this
{“errors”:[{“category”:“INVALID_REQUEST_ERROR”,“code”:“INVALID_CARD_DATA”,“detail”:“Invalid card data.”,“field”:“source_id”}]}
I am following POST /v2/cards - Square API Reference (squareup.com)

   $body = new \Square\Models\CreateCardRequest(
                Str::uuid()->toString(),
                $data['sourceId'],
                $card
   );

$data[‘sourceId’] is coming from data processPayment request (from front side)
What’s wrong ?