First you should adjust the Payworks component to match with your specific needs and configuration. Then you have to build the JAR - Gradle > :app > Tasks > Other > makeJar - Or just open the app gradle file in Android studio and click the play icon next to the "make jar" function
The JAR file is now at ./app/build/libs/myPayworksLibrary.jar