Cordova Integration "Invalid Public Key Passed"

"So I’m trying to integrate in an Ionic app. I created a ““Rave Checkout Button”” on the dashboard. Whenever I try to use the button’s public key in the Ionic app, the iframe modal displays ““Invalid public key passed””.

Where can I generate credentials (public and secret keys) for an ionic app?"

please can you tell me how can I generate public and secret key and tref key for android App??