Skip to content

Commit b9a8070

Browse files
committed
Added checkout functionality and bank payment
1 parent efdd28f commit b9a8070

File tree

87 files changed

+3890
-1457
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+3890
-1457
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import 'package:http/http.dart' as http;
6060
6161
Map<String, String> body = {
6262
'reference': '[YOUR_GENERATED_REFERENCE]',
63-
'amount': 500000.toString(),
63+
'amount': 500000.toString(), // Amount must always be in kobo
6464
'email': 'user@email.com'
6565
};
6666

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
android:layout_width="0dp"
2929
android:layout_height="match_parent"
3030
android:layout_weight="10"
31-
android:background="#292929"
31+
android:background="#031b33"
3232
android:orientation="vertical">
3333

3434
<TextView
@@ -38,7 +38,7 @@
3838
android:layout_marginRight="@dimen/paystack__view__margin"
3939
android:layout_marginTop="@dimen/paystack__view__margin"
4040
android:layout_weight="1"
41-
android:background="#292929"
41+
android:background="#031b33"
4242
android:gravity="center"
4343
android:text="@string/auth_text"/>
4444

@@ -50,7 +50,7 @@
5050
android:layout_marginLeft="@dimen/paystack__view__margin"
5151
android:layout_marginRight="@dimen/paystack__view__margin"
5252
android:layout_weight="10"
53-
android:background="#292929"/>
53+
android:background="#031b33"/>
5454
</LinearLayout>
5555

5656
<Space

assets/images/calender.png

-2.82 KB
Binary file not shown.

assets/images/card_cvv.png

-4.96 KB
Binary file not shown.

assets/images/dob.png

3.07 KB
Loading

assets/images/otp.png

7.98 KB
Loading

assets/images/paystack_logo.png

6.62 KB
Loading

assets/images/successful.png

6.19 KB
Loading

example/android/app/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ android {
2727
}
2828

2929
defaultConfig {
30-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
31-
applicationId "co.paystack.flutterpaystackexample"
30+
applicationId "co.paystack.flutterpaystack"
3231
minSdkVersion 16
3332
targetSdkVersion 27
3433
versionCode 1
@@ -38,8 +37,6 @@ android {
3837

3938
buildTypes {
4039
release {
41-
// TODO: Add your own signing config for the release build.
42-
// Signing with the debug keys for now, so `flutter run --release` works.
4340
signingConfig signingConfigs.debug
4441
}
4542
}

example/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
FlutterApplication and put your custom class here. -->
1515
<application
1616
android:name="io.flutter.app.FlutterApplication"
17-
android:label="flutter_paystack_example"
17+
android:label="Flutter Paystack"
1818
android:icon="@mipmap/ic_launcher">
1919
<activity
2020
android:name=".MainActivity"
@@ -36,4 +36,4 @@
3636
</intent-filter>
3737
</activity>
3838
</application>
39-
</manifest>
39+
</manifest>

0 commit comments

Comments
 (0)