function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pramod Kumar 101Pramod Kumar 101 

Not able to integrate Stripe with Salesforce in LWC using Stripe JS

I am trying to integrate Stripe with Salesforce using Stripe JS in LWC. I have downloaded the Stripe JS from source ( and importing it into LWC using static resources.
The library is successfully loaded and also able to see the card elements on the UI in LWC. But further, when I am trying to create token nothing is happening.
The same functionality is working fine in VF but the difference is in VF I am loading the Stripe JS directly from source <apex:includeScript value=""/>.
As per my knowledge it's not possible to load directly from source in LWC. I also have a workaround for this that we can call the VF Page in Iframe in LWC but I don't want to go with that. Is there any other workaround that we can achieve this in LWC.
VinayVinay (Salesforce Developers) 
Hi Pramod,

Check similar references below that can help you.

Please mark as Best Answer if above information was helpful.

Pramod Kumar 101Pramod Kumar 101
Hi Vinay,

Thanks for your suggestion.
I have already checked the mentioned link. And also I have already mentioned in my questions that I have VF workaround but I dont want to go with iframe.
My main pain-point is that why stripe JS is not wokring in LWC if that is wokring in VF page.