How to identify the merchant is paid or free customer

Hello, i am developing an app with Recurring Subscription. After merchant invokes purchase action and accepts the payment and redirects to URL specified in the appsubscriptioncreate mutation.

How to identify that particular merchant is paid customer.

Should we manage this transaction in our app logic or Shopify handles these transactions