Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "react-native-alipay"

支付宝支付,基于 React Native 的支付宝插件,支持Android/iOS。

Index

Functions

alipay

authInfo

  • authInfo(authInfoStr: string): Promise<AuthResult>

getVersion

  • getVersion(): Promise<string>
  • 获取当前 SDK 版本号

    Returns Promise<string>

    当前 SDK 版本字符串

setAlipaySandbox

  • setAlipaySandbox(isSandbox: boolean): void
  • 设置支付宝沙箱环境,仅 Android

    platform

    android

    Parameters

    • isSandbox: boolean

    Returns void

setAlipayScheme

  • setAlipayScheme(scheme: string): void
  • 设置支付宝跳转Scheme,仅 iOS

    platform

    ios

    Parameters

    • scheme: string

      scheme = ap + APPID

    Returns void

Generated using TypeDoc