@ 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.
英斯特拉桑
npm install @controleonline/react-native-getnet-payment
# ou
yarn add @controleonline/react-native-getnet-payment
机器人
-
minSdkVersion第22页 -
登记包 无
MainApplication.java编号 :MainApplication.kt数字 :
import com.controleonline.pos.getnet.payment.GetnetPackage;
// em getPackages():
packages.add(new GetnetPackage());
乌苏
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
{
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+ (英语)
- 原生反应
参考文献
许可证
麻省理工学院