Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

fastman3-component-pay

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastman3-component-pay

支付组件

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

fastman3-component-pay

协议组件封装

CHANGELOG

v 1.0.0 - 2022.03.30

  • 初始化构建

v 1.0.3 - 2026.04.24

  • 增加Input的maxLength属性,设置为1000

v 1.0.3 - 2026.04.24

  • 增加Input的maxLength属性,设置为20

安装

使用 npm:

$ npm install fastman3-component-pay --save

使用 cnpm:

$ cnpm install fastman3-component-pay --save

使用 yarn:

$ yarn add fastman3-component-pay

示例

import React, { FC, useRef } from "react";
import { View, Button } from "@tarojs/components";
import { IPayPanelRefType, PayPanel } from "fastman3-component-pay";

interface PayDemoProps extends CommonProps {
  // 父组件要传的 prop 放这
}

const PayDemo: FC<PayDemoProps> = (props) => {

  const _ref = useRef<IPayPanelRefType>();

  async function updateIsOpen() {
    try {
      const pwd = await _ref?.current?.open?.();
      console.log("pwd", pwd);
    } catch (error) {
      console.log("error", error);
    }
  }
  return (
    <View className='payDemo-page'>
      <Button onClick={updateIsOpen}>点击打开/关闭面板 Btn</Button>
      <PayPanel ref={_ref} />
    </View>
  );
};

Keywords

pay

FAQs

Package last updated on 24 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts