File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
core/src/main/java/io/snabble/sdk Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ public void cancel() {
229229
230230 okHttpClient .newCall (request ).enqueue (new Callback () {
231231 @ Override
232- public void onResponse (Call call , Response response ) throws IOException {
232+ public void onResponse (Call call , Response response ) {
233233 if (response .isSuccessful ()) {
234234 Logger .d ("Payment aborted" );
235235 } else {
@@ -702,6 +702,11 @@ private String shoppingCartToCheckoutCart() {
702702 cart .items [i ].units = shoppingCart .getEmbeddedAmount (i );
703703 cart .items [i ].weight = shoppingCart .getEmbeddedWeight (i );
704704 cart .items [i ].price = shoppingCart .getEmbeddedPrice (i );
705+
706+ if (product .getType () == Product .Type .UserWeighed ){
707+ cart .items [i ].amount = 1 ;
708+ cart .items [i ].weight = quantity ;
709+ }
705710 }
706711
707712 return gson .toJson (cart );
You can’t perform that action at this time.
0 commit comments