public class GooglePayManager
Lets the application create a Square card nonce from a Google Pay token.
| Constructor and Description |
|---|
GooglePayManager()
Lets the application create a Square card nonce from a Google Pay token.
|
| Modifier and Type | Method and Description |
|---|---|
CallbackReference |
addCreateNonceCallback(CreateNonceCallback callback)
Adds a callback to handle the result of a
GooglePayManager.createNonce request. |
CallbackReference |
addCreateNonceCallback(kotlin.jvm.functions.Function1<? super com.squareup.mcomm.CreateNonceResult,kotlin.Unit> callback)
Adds a callback to handle the result of a
GooglePayManager.createNonce request. |
void |
createNonce(java.lang.String token)
Asynchronously creates a card nonce with a Google Pay token.
|
public GooglePayManager()
Lets the application create a Square card nonce from a Google Pay token.
public void createNonce(java.lang.String token)
Asynchronously creates a card nonce with a Google Pay token.
Add a interface CreateNonceCallback with GooglePayManager.addCreateNonceCallback to handle the class CreateNonceResult
token - A Google Pay token obtained via the Google Pay API.interface CreateNonceCallback,
GooglePayManager.addCreateNonceCallback,
class CreateNonceResultpublic CallbackReference addCreateNonceCallback(CreateNonceCallback callback)
Adds a callback to handle the result of a GooglePayManager.createNonce request.
Call GooglePayManager.addCreateNonceCallback from Kotlin instead to be able to pass a lambda for the
interface CreateNonceCallback
callback - The create nonce callback to be added.interface CallbackReference. To avoid memory leaks, clear the callback reference with
CallbackReference.clear any time a lifecycle destroy event occurs
(e.g. android.app.Activity.onDestroy)GooglePayManager.createNonce,
GooglePayManager.addCreateNonceCallback,
interface CreateNonceCallback,
GooglePayManager.createNoncepublic CallbackReference addCreateNonceCallback(kotlin.jvm.functions.Function1<? super com.squareup.mcomm.CreateNonceResult,kotlin.Unit> callback)
Adds a callback to handle the result of a GooglePayManager.createNonce request.
callback - The create nonce callback to be added.interface CallbackReference. To avoid memory leaks, clear the callback reference with
CallbackReference.clear any time a lifecycle destroy event occurs
(e.g. android.app.Activity.onDestroy)GooglePayManager.createNonce,
GooglePayManager.createNonce