Skip to content

Commit

Permalink
Invoke callback when user cancels payment
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubery committed Nov 18, 2017
1 parent d59a8e0 commit be185fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions android/src/main/java/com/pw/droplet/braintree/Braintree.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ public void onActivityResult(Activity activity, final int requestCode, final int
data.getSerializableExtra(BraintreePaymentActivity.EXTRA_ERROR_MESSAGE)
);
break;
case Activity.RESULT_CANCELED:
this.errorCallback.invoke("RESULT_CANCELED");
break;
default:
break;
}
Expand Down

0 comments on commit be185fc

Please sign in to comment.