Using the hosted Web Demo App requires only two steps:
1. Run an instance of Chrome with CORS disabled.
In order to run the demo web SDK, you’ll need to disable CORS (cross-site scripting security), as the demo app is hosted in a different domain (Github). The easiest way to do this is to run a new instance of Chrome with security disabled. This can be completed by running the following command (on Mac OS):
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security
2. Launch the app and enter credentials
In your CORS disabled instance of Chrome, head over to https://cybrid-app.github.io/cybrid-sdk-web/. You should see the following UI:
Be sure to have the following information handy for your bank:
- Client ID
- Client Secret
- Customer Guid to test with
The Cybrid Web Demo App authenticates to your Sandbox Bank, and connects under the context of a specific customer, which is why we'll provide it with a specific Customer GUID.
If you don't have these details handy, you can retrieve the Client ID from the Bank page in the Cybrid Partner Portal. Similarly, you can navigate to Customers, select your test customer, and click the copy icon beside their guid. Unfortunately if you've lost your Client Secret there is no way to retrieve it, so you'll need to navigate to the API Keys in the Partner Portal and click Generate New Key to obtain new credentials.
With the demo app running successfully, you can test out the following:
- Viewing real-time prices of crypto assets
- Viewing the account list of the customer
- Buying or selling cryptocurrency (simulated)
- Viewing the transaction history of a specific account