1- # ThePeer Android SDK
1+ # Thepeer official Android SDK
22
3- ThePeer Android SDK gives one integration access to all fintech businesses on your Android App
3+ Thepeer Android SDK gives one integration access to all fintech businesses on your Android App
44
55
661 . Send
@@ -54,13 +54,13 @@ KOTLIN
5454
5555``` kotlin
5656
57- // initialize ThePeer SDK
57+ // initialize Thepeer SDK
5858override fun onCreate (savedInstanceState : Bundle ? ) {
5959 super .onCreate(savedInstanceState)
6060
6161
62- // initialize ThePeer SDK
63- val thePeer = ThePeer .Builder (
62+ // initialize Thepeer SDK
63+ val thePeer = Thepeer .Builder (
6464 activity = this ,
6565 amount = BigDecimal (10000.00 ),
6666 currency = " NGN" ,
7676
7777``` java
7878
79- // initialize ThePeer SDK
79+ // initialize Thepeer SDK
8080 @Override
8181 protected void onCreate(Bundle savedInstanceState) {
8282 super . onCreate(savedInstanceState);
8383 setContentView(R . layout. activity_main);
8484
85- // initialize ThePeer SDK
86- ThePeer thePeer = new ThePeer .Builder (
85+ // initialize Thepeer SDK
86+ Thepeer thepeer = new Thepeer .Builder (
8787 this ,
8888 new BigDecimal (" 1000.00" ),
8989 " NGN" ,
9090 getResources(). getString(R . string. user_reference),
91- new ThePeerResultListener ())
91+ new ThepeerResultListener ())
9292
9393 }
9494```
@@ -108,15 +108,15 @@ KOTLIN
108108
109109``` kotlin
110110
111- thePeer .send()
111+ thepeer .send()
112112
113113```
114114
115115JAVA
116116
117117``` java
118118
119- thePeer . send();
119+ thepeer . send();
120120
121121```
122122
@@ -128,15 +128,15 @@ KOTLIN
128128
129129``` kotlin
130130
131- thePeer .checkout(email: String )
131+ thepeer .checkout(email: String )
132132
133133```
134134
135135JAVA
136136
137137``` java
138138
139- thePeer . checkout(String email);
139+ thepeer . checkout(String email);
140140
141141```
142142
@@ -148,27 +148,27 @@ KOTLIN
148148
149149``` kotlin
150150
151- thePeer .directCharge()
151+ thepeer .directCharge()
152152
153153```
154154
155155JAVA
156156
157157``` java
158158
159- thePeer . directCharge();
159+ thepeer . directCharge();
160160
161161```
162162
163163## Listener
164164
165165Once the request is initiated the SDK will wait from response from the service and notify the App
166- via ` ThePeerResultListener `
166+ via ` ThepeerResultListener `
167167KOTLIN
168168
169169``` Kotlin
170- private val resultListener = object : ThePeerResultListener {
171- override fun onSuccess (transaction : ThePeerTransaction ) {
170+ private val resultListener = object : ThepeerResultListener {
171+ override fun onSuccess (transaction : ThepeerTransaction ) {
172172 // Transaction Successful
173173 Log .v(TAG , transaction.toString())
174174
@@ -192,10 +192,10 @@ JAVA
192192
193193``` java
194194
195- new ThePeerResultListener () {
195+ new ThepeerResultListener () {
196196
197197 @Override
198- public void onSuccess (@NonNull ThePeerTransaction transaction ) {
198+ public void onSuccess (@NonNull ThepeerTransaction transaction ) {
199199 ((TextView ) findViewById(R . id. resultText)). setText(transaction. toString());
200200 }
201201
0 commit comments