# @controleonline/react-native-getnet-payment 中文文档

规范地址：https://npmcn.com/package/%40controleonline/react-native-getnet-payment/

版本：1\.0\.0
npm 元数据更新时间：2026-10-16T03:15:10.494Z
中文译文更新时间：2026-11-10T22:01:32.640Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40controleonline/react-native-getnet-payment
原文对照：https://npmcn.com/package/%40controleonline/react-native-getnet-payment/?lang=original
项目主页：https://github.com/ControleOnline/react-native-getnet-payment#readme
源码仓库：https://github.com/ControleOnline/react-native-getnet-payment

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：18.6 kB，7 个文件
- 模块格式：CommonJS
- TypeScript 类型：未声明
- 运行依赖：0 个
- peer 依赖：react-native \*
- 首次发布：2026-08-23T14:50:37.665Z
- 最新版本发布：2026-08-23T14:50:38.018Z
- 近 30 天下载量：2785（2026-10-11 至 2026-11-09，npm 官方下载统计）
- 已发布版本数：1（近 12 个月 1 个）

## 中文简介

通过深链接对 Getnet POS 支付重现本地模块

## 安装

```sh
npm install @controleonline/react-native-getnet-payment
```

也可以使用：`pnpm add @controleonline/react-native-getnet-payment`、`yarn add @controleonline/react-native-getnet-payment`、`bun add @controleonline/react-native-getnet-payment`

## README

# @ controlonline/ react-native-getnet- paying (英语)

Módulo 重新行动土著组织 **获取网 POS** 通过 **深连线**。 。 。 .

Supporta crédito, débito, 凭证, PIX, Estorno, reimpressão e conferencea de states. 中国植物物种信息数据库.

> **(原始内容存档于2018-03-27). Apenas Android.** (原始内容存档于2018-09-26). Requer o app de pagamentos da Getnet Instalado no terminal.

## 英斯特拉桑

```bash
npm install @controleonline/react-native-getnet-payment
# ou
yarn add @controleonline/react-native-getnet-payment
```

### 机器人

1.  `minSdkVersion` 第22页
    
2.  登记包 无 `MainApplication.java` 编号 : `MainApplication.kt`数字 :
    

```java
import com.controleonline.pos.getnet.payment.GetnetPackage;

// em getPackages():
packages.add(new GetnetPackage());
```

## 乌苏

```js
import Getnet from '@controleonline/react-native-getnet-payment';
import { v4 as uuidv4 } from 'uuid';

// Pagamento crédito à vista
const result = await Getnet.payment({
  amount: 15.0,
  paymentType: 'credit', // credit | debit | voucher | pix
  callerId: uuidv4(),
  installments: 1,
  // creditType: 'creditMerchant' | 'creditIssuer', // só se installments > 1
  // allowPrintCurrentTransaction: true,
  // orderId: 'PEDIDO-123',
});

if (result.success) {
  console.log('Aprovado!', result.authorizationCode, result.nsu);
} else {
  console.log('Falhou:', result.result, result.resultDetails);
}

// Estorno
await Getnet.refund({
  amount: 15.0,
  cvNumber: result.cvNumber,
  // transactionDate: '150921',
  // originTerminal: '...',
});

// Reimpressão do último comprovante
await Getnet.reprint();

// Consulta de status
await Getnet.checkStatus(callerId);
```

## 迈多斯

### `payment(params)`

| 帕尔梅特罗 | 提波 | 乌布里加多里奥省 | 国家 |
| --- | --- | --- | --- |
| `amount` | 编号 | 图像 | Valor em Reais (前: 15.50) (英语) |
| `paymentType` | 字符串 | 图像 | `credit`, (中文(简体) ), `debit`, (中文(简体) ), `voucher` 尔 `pix` |
| `callerId` | 字符串 | 图像 | 临时身份证 |
| `installments` | 编号 | 无 | 帕切拉斯 (1-12) (英语). Débito deve Ser 1 (法语) |
| `creditType` | 字符串 | 无 | `creditMerchant` 尔 `creditIssuer` (帕尔塞拉多) |
| `allowPrintCurrentTransaction` | 布尔 | 无 | 缩写 |
| `orderId` | 字符串 | 无 | 身份证明做恋童癖 |

### `refund(params)`

| 帕尔梅特罗 | 提波 | 乌布里加多里奥省 | 国家 |
| --- | --- | --- | --- |
| `amount` | 编号 | 图像 | 瓦罗里耶斯 |
| `cvNumber` | 字符串 | 无 | Número do CV da transação 原作 |
| `transactionDate` | 字符串 | 无 | 数据传输系统 |
| `originTerminal` | 字符串 | 无 | 终点站 |
| `allowPrintCurrentTransaction` | 布尔 | 无 | 缩写 |

### `reprint()`

《宪法》.

### `checkStatus(callerId)`

马尔科多·皮洛地位咨询 `callerId`。 。 。 .

## 撤资a

```js
{
  result: "0",              // "0" = sucesso
  resultDetails: "TRANSACAO APROVADA",
  success: true,
  amount: "000000001500",
  callerId: "...",
  nsu: "...",
  cvNumber: "...",
  authorizationCode: "...",
  cardBin: "...",
  cardLastDigits: "...",
  brand: "...",
  installments: "...",
  nsuLocal: "...",
  // ... demais campos retornados pelo app Getnet
}
```

### 迪戈斯大学 `result`

| 科迪戈语Name | 符号 |
| --- | --- |
| `0` | 苏塞索语Name |
| `1` | 内加达 |
| `2` | 取消 |
| `3` | 法尔哈 |
| `4` | 德孔希多语Name |
| `5` | 笔记 |

## 深链接

| 行动厅 | URI 资源 |
| --- | --- |
| 帕加门托 | `getnet://pagamento/v3/payment?...` |
| 伊斯托诺 | `getnet://pagamento/v1/refund?...` |
| 雷姆普雷西昂 | `getnet://pagamento/v1/reprint` |
| 状态 | `getnet://pagamento/v1/checkstatus?callerId=...` |

## 请求

-   终端 Getnet (Smart POS) com app de pagamentos instalado
-   Android API 22+ (英语)
-   原生反应

## 参考文献

-   [文档获得智能](https://getstore.getnet.com.br/)
-   [App2App 整合](https://docs.globalgetnet.com/en/products/in-store-payments/app2app-integration)

## 许可证

麻省理工学院

## 常见问题

### @controleonline/react-native-getnet-payment 是什么？

通过深链接对 Getnet POS 支付重现本地模块

### 如何安装 @controleonline/react-native-getnet-payment？

在项目目录运行 npm install @controleonline/react-native-getnet-payment，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：react-native（\*）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @controleonline/react-native-getnet-payment 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/controleonline\_\_react-native-getnet-payment 是否存在。

### @controleonline/react-native-getnet-payment 支持 ESM 还是 CommonJS？

以 CommonJS 形式发布，可以直接 require\(\)；在 ES Module 项目中也可以用 import 引入（Node\.js 会把 module\.exports 作为默认导出）。

### @controleonline/react-native-getnet-payment 可以商用吗？

@controleonline/react-native-getnet-payment 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @controleonline/react-native-getnet-payment 的下载量有多少？

根据 npm 官方下载统计，@controleonline/react-native-getnet-payment 在 2026/10/11 – 2026/11/09 这 30 天内被下载 2,785 次，日均约 93 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @controleonline/react-native-getnet-payment 还在维护吗？

最新版本 1\.0\.0 发布于 2026/08/23（2 个月前）；至今共发布 1 个版本，其中过去 12 个月发布了 1 个；首次发布于 2026/08/23。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

