1.0.4 • Published 5 years ago
@capacitor-plugin/googlepay-issuer-plugin v1.0.4
capacitor-plugin-googlepay-issuer
Plugin do Google Pay para o Capacitor
Required
This plugin required Tap And Pay 17.1.0 SDK, access https://developers.google.com/pay/issuers
Install
npm install capacitor-plugin-googlepay-issuer
npx cap syncOn Android, register the plugin in your main activity:
import com.google.android.capacitor.googlepay.issuer.GooglePayIssuerPlugin;
public class MainActivity extends BridgeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Initializes the Bridge
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
// Additional plugins you've installed go here
// Ex: add(TotallyAwesomePlugin.class);
add(GooglePayIssuerPlugin.class);
}});
}
}API
getActiveWalletID()getTokenStatus(...)getEnvironment()getStableHardwareId()listTokens()pushProvision(...)
getActiveWalletID()
getActiveWalletID() => anyreturns the ID of the active wallet
Returns: any
getTokenStatus(...)
getTokenStatus(options: { tsp: string; tokenReferenceId: string; }) => anyreturns the status of a token with a given token ID
| Param | Type |
|---|---|
options | { tsp: string; tokenReferenceId: string; } |
Returns: any
getEnvironment()
getEnvironment() => anyreturns the environment (e.g. production or sandbox)
Returns: any
getStableHardwareId()
getStableHardwareId() => anyreturns the stable hardware ID of the device
Returns: any
listTokens()
listTokens() => anyreturns a list of tokens registered to the active wallet
Returns: any
pushProvision(...)
pushProvision(options: { opc: string; tsp: string; clientName: string; lastDigits: string; address: any; }) => anyStarts the push tokenization flow
| Param | Type |
|---|---|
options | { opc: string; tsp: string; clientName: string; lastDigits: string; address: any; } |
Returns: any