Yes, that is the preferred way to create a Stripe subscription. Generate a token on the client side using anvil.stripe.get_token(), then call anvil.stripe.new_customer() on the server and call new_subscription() on that customer. Here’s a more detailed description, with some sample code: