Setup your photobook app for test and production

Give yourself ~10 mins to complete this section.

Tapsbook test and production environment

Tapsbook platform provides two sets of environment for your different need during your development life cycle:
Test server for testing (duh!!): search.tapsbook.com
Live server for running your production app: dashboard.tapsbook.com
Please notice all API requests exist in one of those two environments, and objects (orders, profile settings etc) in one environment cannot be manipulated by objects in the other.

Test server should be used for your development cycle, the order submitted in Test environment will not go through the actual manufacturing - instead, they let you test Stripe integration and photo book SDK integration to verify your book pages were generated correctly and your stripe test account can receive the "payment".

At the end of your development cycle, you should contact us that you have submitted a test order and need the actual book be manufactured and shipped. You can skip the Billing section on the test server.

Live server is configured to automatically send order for manufacturing without any manual work, as such, each order will incur a manufacturing cost to you, via a charge to your credit card on file. Live server will require you setup your credit card in the Billing section of your profile.

You should only use the live server after you have completed a test order, requested the test order to be fulfilled and received the test order book and verified the complete end-to-end flow is working.

Setup Stripe Keys at the backend

You will get two set of keys from Stripe: live key and test key. They should be used to match Tapsbook environment: use Stripe test key in our test environment, and use Stripe live key in our live environment.

For live key or test key, you will receive a pair of keys which stripe calls publishable_key and secret key
stripe-keys.

You need to copy and paste these two keys in the Payment section of your Tapsbook profile. Remember only copy the live key to the live server.
image

Setup the Stripe key in your mobile app

You only need to set the stripe publishable key in your mobile app's Configurator.m. Remember you should always start with a test Stripe key during your development cycle and need to change to live key before you make the final build for the app store submission.

- (NSString *)stripePublishableKeyForRegion:(TBSDKRegion )region {
    return "pk_test_[key_details_skipped]";
}

Setup the app key in your mobile app

From the API Kit under your Tapsbook dashboard, you will see your app key for the app you are working with.
app_key

You need to set the merchant (app) key as such in your app's Configurator.m. Remember you should always start with a test app key during your development cycle and need to change to live app key before you make the final build for the app store submission. This is separate from the the stripe key configuration as shown above.

- (NSString *)merchantKeyForRegion:(TBSDKRegion) region {
     return @"test_[APP_key_skipped]";
}