click_stone_connect 0.0.7
SDKdartflutter
Platformandroidioswindowslinuxmacos
Comunicação com a API Connect da Stone
Features
Comunication with stone api connect
Getting started
see example file
Usage
see example file
final stone = ClickStoneConnect(config: ConfigModel(secretKey: secretKey, serialNumber: serialNumber, showLog: true));
final venda = Order(
customer: Customer(name: 'cliente', email: 'cliente@email.com'),
items: [Item(amount: 1, description: 'Chaveiro', quantity: 1)],
closed: false,
poiPaymentSettings: PoiPaymentSettings(
visible: true,
printOrderReceipt: false,
devicesSerialNumber: [serialNumber],
paymentSetup: PaymentSetup(type: 'credit', installments: 1, installmentType: 'merchant'),
displayName: 'Pedido Teste'),
);
final result = stone.novaVenda(order: venda);