Skip to content

Commit 501473a

Browse files
committed
Reduce ugliness of auth popup
1 parent cf29135 commit 501473a

6 files changed

Lines changed: 14 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
88
- Add access_code support (`chargeCard` will resume transaction initialized on server)
99
- Transaction reference can be fetched even if an error occured
1010
- removed support for token flow
11+
- Added support for Bank hosted authorization
1112

1213
## Released v2.1.0 on Nov 13, 2016
1314
- Add metadata support.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You do not need to clone this repository or download the files. Just add the fol
2222

2323
```gradle
2424
dependencies {
25-
compile 'co.paystack.android:paystack:3.0.0'
25+
compile 'co.paystack.android:paystack:3.0.1'
2626
}
2727
```
2828

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ ext {
2424
compileSdkVersion = 25
2525
minSdkVersion = 16
2626
targetSdkVersion = 25
27-
versionCode = 11
27+
versionCode = 12
2828

2929
buildToolsVersion = "25.0.1"
3030
supportLibraryVersion = "25.3.1"
31-
versionName = "3.0.0"
31+
versionName = "3.0.1"
3232
}

paystack/src/main/java/co/paystack/android/ui/AuthActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected void onCreate(Bundle savedInstanceState) {
2929

3030
public void handleResponse() {
3131
if (responseJson == null) {
32-
responseJson = "{\"status\":\"4\",\"message\":\"Reaffirm Transaction Status on Server\"}";
32+
responseJson = "{\"status\":\"requery\",\"message\":\"Reaffirm Transaction Status on Server\"}";
3333
}
3434
synchronized (si) {
3535
si.setResponseJson(responseJson);

paystack/src/main/java/co/paystack/android/ui/AuthSingleton.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
public class AuthSingleton {
44
private static AuthSingleton instance = new AuthSingleton();
5-
private String responseJson = "{\"status\":\"4\",\"message\":\"Reaffirm Transaction Status on Server\"}";
5+
private String responseJson = "{\"status\":\"requery\",\"message\":\"Reaffirm Transaction Status on Server\"}";
66
private String url = "";
77

88
private AuthSingleton() {

paystack/src/main/res/layout/co_paystack_android____activity_auth.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,22 @@
3535
android:layout_width="match_parent"
3636
android:layout_height="0dp"
3737
android:layout_weight="1"
38-
android:background="@android:color/background_dark"
38+
android:background="#292929"
3939
android:gravity="center"
40+
android:paddingLeft="@dimen/paystack__view__margin"
41+
android:paddingRight="@dimen/paystack__view__margin"
42+
android:paddingTop="@dimen/paystack__view__margin"
4043
android:text="Please conclude challenge from your bank to authorize payment"/>
4144

4245
<WebView
4346
android:id="@+id/webView"
4447
android:layout_width="match_parent"
4548
android:layout_height="0dp"
4649
android:layout_weight="10"
47-
android:background="#292929"/>
50+
android:background="#292929"
51+
android:paddingBottom="@dimen/paystack__view__margin"
52+
android:paddingLeft="@dimen/paystack__view__margin"
53+
android:paddingRight="@dimen/paystack__view__margin"/>
4854
</LinearLayout>
4955

5056
<Space

0 commit comments

Comments
 (0)