Getting inapppurchase2 to work with Capacitor

I’m trying to get the plug in to work
I’ve run the following commands
npm install @ionic-native/core
npm install @ionic-native/in-app-purchase-2
npm install cordova-plugin-purchase npx cap update

I’ve tested it as an apk, but had the following error

Calling inapppurchase2.get, but the inapppurchase2 plugin is not installed.
Inapppurchase2 plugin: ‘ionic Cordova plugin add cordova-plugin-purchase’

I run
‘ionic Cordova plugin add cordova-plugin-purchase’
and my terminal says
Refusing to run Ionic cordova plugin inside a capacitor project

So I run
npm install cordova-plugin-purchase
but then that adds "implementation “” to the automactically generated

Upon build, this throws an error
could not get resource: jcenter…billing-3.0.3.pom

I think I’m getting close, but I do not know what I’m missing, please help!