Skip to content

Commit

Permalink
Updated web url
Browse files Browse the repository at this point in the history
  • Loading branch information
gau4sar committed Aug 14, 2022
1 parent 207b6b2 commit 8bd06ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ class MainActivity : AppCompatActivity() {

companion object {

const val BALLERINE_WEB_URL = "https://moneco.dev.ballerine.app"
const val BALLERINE_BASE_URL = "https://moneco.dev.ballerine.app"

/**
* BALLERINE_API_TOKEN needs to be generated from the backend. Please follow the below link for more information on how to generate the tole
* https://www.notion.so/ballerine/Ballerine-s-Developers-Documentation-c9b93462384446ef98ffb69d16865981#228240bfef6f48f3971db07ef03368c3
*/
const val BALLERINE_API_TOKEN =
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbmRVc2VySWQiOiJhMzEyYzk1ZC03ODE4LTQyNDAtOTQ5YS1mMDRmNDEwMzRlYzEiLCJjbGllbnRJZCI6IjI2YTRmOTFiLWFhM2UtNGNlNS1hZDE1LWYzNTRiOTI1NmJmMCIsImlhdCI6MTY1OTYxNzM1NCwiZXhwIjoxNjkwMzc1NzU0LCJpc3MiOiIyNmE0ZjkxYi1hYTNlLTRjZTUtYWQxNS1mMzU0YjkyNTZiZjAifQ.Nm-j9jVh7ByHoo0WkqnIQeVR0mNWcV3TZUNknSLRtbc"
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbmRVc2VySWQiOiJhMzE0ZDk1ZC05ODE4LTQyMjAtOTQ5YS1mMDRmNDEwMzRlYzEiLCJjbGllbnRJZCI6IjI2YTRmOTFiLWFhM2UtNGNlNS1hZDE1LWYzNTRiOTI1NmJmMCIsImlhdCI6MTY2MDQyOTg2NiwiZXhwIjoxOTY4MDEzODY2LCJpc3MiOiIyNmE0ZjkxYi1hYTNlLTRjZTUtYWQxNS1mMzU0YjkyNTZiZjAifQ.mDjow1TIbD_Uz0m2tKvx62KI7JYu67Qzm88aJbjSFkc"

const val BALLERINE_WEB_URL = "$BALLERINE_BASE_URL/?b_t=$BALLERINE_API_TOKEN&b_eut=individual&b_fn=John&b_ln=Doe&[email protected]&b_ph=+15014384992"

const val MAIN_SCREEN = 0
const val WEB_VIEW_SCREEN = 1
Expand Down Expand Up @@ -100,7 +102,7 @@ class MainActivity : AppCompatActivity() {
BallerineKYCFlowWebView(
outputFileDirectory = outputFileDirectory,
cameraExecutorService = cameraExecutorService,
url = "$BALLERINE_WEB_URL?b_t=$BALLERINE_API_TOKEN",
url = BALLERINE_WEB_URL,
onVerificationComplete = { verificationResult ->

//TODO :: Use the verification result returned
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class MainActivityXML : AppCompatActivity() {
BallerineKYCFlowWebView(
outputFileDirectory = outputFileDirectory,
cameraExecutorService = cameraExecutorService,
url = "${MainActivity.BALLERINE_WEB_URL}?b_t=${MainActivity.BALLERINE_API_TOKEN}",
url = "${MainActivity.BALLERINE_BASE_URL}?b_t=${MainActivity.BALLERINE_API_TOKEN}",
onVerificationComplete = { verificationResult ->

//TODO :: Use the verification result returned
Expand Down
2 changes: 1 addition & 1 deletion androidApp/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Ballerine KMP</string>
<string name="app_name">Ballerine KMP Example</string>
<string name="start_the_flow">Start The Flow</string>
<string name="display_verification_result">No verification result available</string>
</resources>

0 comments on commit 8bd06ab

Please sign in to comment.