-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
731 additions
and
1,340 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
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
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
12 changes: 12 additions & 0 deletions
12
Venmo/src/main/java/com/braintreepayments/api/VenmoAuthChallengeCallback.java
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.braintreepayments.api; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
/** | ||
* Callback to handle result from {@link VenmoClient#tokenizeVenmoAccount(VenmoAuthChallengeResult, VenmoResultCallback)} | ||
*/ | ||
public interface VenmoAuthChallengeCallback { | ||
void onVenmoAuthChallenge(@Nullable VenmoAuthChallenge venmoAuthChallenge, | ||
@Nullable Exception error); | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
Venmo/src/main/java/com/braintreepayments/api/VenmoAuthChallengeResult.java
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.braintreepayments.api; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
public class VenmoAuthChallengeResult { | ||
|
||
private final Exception error; | ||
private final String paymentContextId; | ||
private final String venmoAccountNonce; | ||
private final String venmoUsername; | ||
|
||
VenmoAuthChallengeResult(@Nullable String paymentContextId, @Nullable String venmoAccountNonce, | ||
@Nullable String venmoUsername, @Nullable Exception error) { | ||
this.paymentContextId = paymentContextId; | ||
this.venmoAccountNonce = venmoAccountNonce; | ||
this.venmoUsername = venmoUsername; | ||
this.error = error; | ||
} | ||
|
||
Exception getError() { | ||
return error; | ||
} | ||
|
||
String getPaymentContextId() { | ||
return paymentContextId; | ||
} | ||
|
||
String getVenmoAccountNonce() { | ||
return venmoAccountNonce; | ||
} | ||
|
||
String getVenmoUsername() { | ||
return venmoUsername; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
Venmo/src/main/java/com/braintreepayments/api/VenmoAuthChallengeResultCallback.java
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.braintreepayments.api; | ||
|
||
public interface VenmoAuthChallengeResultCallback { | ||
|
||
void onVenmoResult(VenmoAuthChallengeResult venmoAuthChallengeResult); | ||
} |
Oops, something went wrong.