Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,6 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO
@Override
public void run() {
progressDialog.dismiss();

processDeliveryItem(checkoutTransaction);

checkoutTransaction.finish(SpanStatus.INTERNAL_ERROR);
}
});
Expand All @@ -373,8 +370,6 @@ public void run() {
public void onFailure(@NotNull Call call, @NotNull IOException e) {
progressDialog.dismiss();
Sentry.captureException(e);

processDeliveryItem(checkoutTransaction);
checkoutTransaction.finish(SpanStatus.INTERNAL_ERROR);
Log.e("checkout", "checkout failed");
}
Expand Down Expand Up @@ -424,7 +419,8 @@ private void processDeliveryItem(ITransaction checkoutTransaction) {
ISpan processDeliverySpan = checkoutTransaction.startChild("task", "process delivery");

try {
throw new MainFragment.BackendAPIException("Failed to init delivery workflow.");
// TODO: Implement actual delivery workflow initialization logic
Log.i("processDeliveryItem", "Delivery workflow initialized successfully");
} catch (Exception e) {
Log.e("processDeliveryItem", e.getMessage());
processDeliverySpan.setThrowable(e);
Expand Down