Skip to content

@capgo/capacitor-wechat

Capacitor WeChat Plugin - WeChat SDK integration for authentication, sharing, payments, and mini-programs.

Capacitor WeChat Plugin - WeChat SDK integration for authentication, sharing, payments, and mini-programs.

  • initialize - Initialize the WeChat SDK with your application credentials.
  • isInstalled - Check if WeChat app is installed on the device.
  • auth - Authenticate user with WeChat OAuth.
  • share - Share content to WeChat.
MethodDescription
initializeInitialize the WeChat SDK with your application credentials.
isInstalledCheck if WeChat app is installed on the device.
authAuthenticate user with WeChat OAuth.
shareShare content to WeChat.
sendPaymentRequestSend payment request to WeChat Pay.
openMiniProgramOpen WeChat mini-program.
chooseInvoiceChoose invoice from WeChat.
getPluginVersionGet the native Capacitor plugin version.

This reference is synced from src/definitions.ts in capacitor-wechat.

If you are using @capgo/capacitor-wechat to plan authentication and account flows, connect it with Using @capgo/capacitor-wechat for the native capability in Using @capgo/capacitor-wechat, @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, and Two-factor authentication for the implementation detail in Two-factor authentication.