-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issues Fix] - #38 Exposed credentials
- Loading branch information
Shegun Montcho
committed
Apr 11, 2024
1 parent
ed33d51
commit 2b38403
Showing
5 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
## 1.3.0-dev.2 | ||
|
||
- Remove public_api_key | ||
- Update callback | ||
|
||
## 1.3.0-dev.1 | ||
|
||
- Update sdk loader ui | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import 'success_screen.dart'; | |
|
||
void main() => runApp(const App()); | ||
|
||
void successCallback(response, context) { | ||
void callback(response, context) { | ||
switch (response['status']) { | ||
case PAYMENT_CANCELLED: | ||
debugPrint(PAYMENT_CANCELLED); | ||
|
@@ -51,21 +51,22 @@ void successCallback(response, context) { | |
break; | ||
|
||
default: | ||
debugPrint(UNKNOWN_EVENT); | ||
break; | ||
} | ||
} | ||
|
||
const kkiapay = KKiaPay( | ||
amount: 1000, | ||
countries: ["BJ","CI"], | ||
countries: ["BJ","CI","SN","TG"], | ||
phone: "22961000000", | ||
name: "John Doe", | ||
email: "[email protected]", | ||
reason: 'transaction reason', | ||
data: 'Fake data', | ||
sandbox: false, | ||
apikey: "LprYUAyMpfAjq4z2yTHPiY0b6XktIQ", | ||
callback: successCallback, | ||
apikey: public_api_key, | ||
callback: callback, | ||
theme: defaultTheme, | ||
partnerId: 'AxXxXXxId', | ||
paymentMethods: ["momo", "card"]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters