Options
All
  • Public
  • Public/Protected
  • All
Menu

@sigodenjs/alipay

Index

Functions

formatKey

  • formatKey(key: string, type: string): string
  • Parameters

    • key: string
    • type: string

    Returns string

getDecodeSign

  • getDecodeSign(params: any): string
  • Parameters

    • params: any

    Returns string

getTimestamp

  • getTimestamp(date?: Date): string
  • Parameters

    • Default value date: Date = new Date()

    Returns string

isBinaryParam

  • isBinaryParam(data: any): boolean

sign

verifySign

  • verifySign(decodeSign: string, expectSign: string, alipayPublicKey: string, signType: string): boolean
  • Parameters

    • decodeSign: string
    • expectSign: string
    • alipayPublicKey: string
    • signType: string

    Returns boolean

zerosLeft

  • zerosLeft(str: string, length: number): string
  • Parameters

    • str: string
    • length: number

    Returns string

Object literals

Const ALIPAY_ALGORITHM_MAPPING

ALIPAY_ALGORITHM_MAPPING: object

RSA

RSA: string = "RSA-SHA1"

RSA2

RSA2: string = "RSA-SHA256"

Generated using TypeDoc