Background Information
Square recently released SquareSDK.
Firebase has compatibility with StripeSDK.
Questions
Does Firebase have compatibility with Square?
Is there support that allows for integration?
I've gone through the preliminaries for Square and i've noticed in their sample application which has a walkthrough, in specific, their sample code allows us to replace the charge server, can I replace this with firebase hosting?
Sample Code
Square Cookie Demo, code for setting charge server in "take" payments guide:
private static final String CHARGE_SERVER_HOST = "REPLACE_ME";
private static final String CHARGE_SERVER_URL =
"https://" + CHARGE_SERVER_HOST + "/";
Firebase Stripe Demo, code for setting key in "process" payments guide:
firebase.initializeApp({
apiKey: "your-web-api-key",
authDomain: "your-firebase-project-id.firebaseapp.com",
databaseURL: "https://your-firebase-project-id.firebaseio.com",
storageBucket: "your-firebase-project-id.appspot.com",
messagingSenderId: "your-cloud-messaging-sender-id"
});
Stripe.setPublishableKey('your-stripe-publishable-key');
Some Thoughts
From the walkthrough on Square cookie demo,
(1) sign up with square to gain an access key, for the purpose of communicating with their api through the app., [✓]
(2) sign up with heroku, for the purpose of deploying the app. and hosting the charge server, [✓]
(3) placing the key we got from square in the heroku account. [✓]
I'd imagine .setPublishableKey(...)
is similar to this process?
(1) sign up with square to gain access key, [✓]
(2) sign up with firebase to gain hosting capabilities for the app., [✓]
(3) placing the key we got from square in the firebase account (through the CLI). [???]