Skip to content

Commit 1385d5e

Browse files
committed
Fixed payment result not resetting on consecutive checkouts
1 parent 84ef0ac commit 1385d5e

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.17.4]
5+
6+
### Fixed
7+
- Fixed payment result not resetting on consecutive checkouts
8+
49
## [0.17.3]
510

611
### Added

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ allprojects {
2323
}
2424

2525
project.ext {
26-
sdkVersion='0.17.3'
26+
sdkVersion='0.17.4'
2727
versionCode=1
2828

2929
compileSdkVersion=29

core/src/main/java/io/snabble/sdk/Checkout.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ public void reset() {
231231
checkoutProcess = null;
232232
invalidProducts = null;
233233
paymentMethod = null;
234+
paymentResultHandled = false;
235+
paymentResult = null;
234236
shop = null;
235237
}
236238

@@ -272,6 +274,8 @@ public void checkout() {
272274
paymentMethod = null;
273275
priceToPay = 0;
274276
invalidProducts = null;
277+
paymentResult = null;
278+
paymentResultHandled = false;
275279
shop = project.getCheckedInShop();
276280

277281
notifyStateChanged(State.HANDSHAKING);

0 commit comments

Comments
 (0)