1.0.4 • Published 3 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 sync
On 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() => any
returns the ID of the active wallet
Returns: any
getTokenStatus(...)
getTokenStatus(options: { tsp: string; tokenReferenceId: string; }) => any
returns the status of a token with a given token ID
Param | Type |
---|---|
options | { tsp: string; tokenReferenceId: string; } |
Returns: any
getEnvironment()
getEnvironment() => any
returns the environment (e.g. production or sandbox)
Returns: any
getStableHardwareId()
getStableHardwareId() => any
returns the stable hardware ID of the device
Returns: any
listTokens()
listTokens() => any
returns a list of tokens registered to the active wallet
Returns: any
pushProvision(...)
pushProvision(options: { opc: string; tsp: string; clientName: string; lastDigits: string; address: any; }) => any
Starts the push tokenization flow
Param | Type |
---|---|
options | { opc: string; tsp: string; clientName: string; lastDigits: string; address: any; } |
Returns: any