Skip to content

Commit

Permalink
Refactor callbacks to kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahkoop committed Dec 12, 2023
1 parent fec9c01 commit 209f519
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 31 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.braintreepayments.api

/**
* Callback for receiving result of
* [LocalPaymentClient.createPaymentAuthRequest].
*/
interface LocalPaymentAuthCallback {
/**
* @param paymentAuthRequest a request used to launch the PayPal web authentication flow
*/
fun onLocalPaymentAuthRequest(paymentAuthRequest: LocalPaymentAuthRequest)
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.braintreepayments.api

/**
* Callback for receiving result of
* [LocalPaymentClient.tokenize].
*/
interface LocalPaymentTokenizeCallback {
/**
*
* @param localPaymentResult a success, failure, or cancel result from the local payment flow
*/
fun onLocalPaymentResult(localPaymentResult: LocalPaymentResult)
}

0 comments on commit 209f519

Please sign in to comment.