Use stripe.js for integration and use webhook to conditionally check data response on transaction (mainly total trxn value and other parameters) for trial and paid subscription