패키지, 저장소 및 앱 카테고리 검색

invoiceninja 표지
패키지 상세v0.0.11

invoiceninja

Flutter 앱에서 PDF 송장 생성 및 결제 수락을 쉽게 수행하세요

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
60
좋아요
76
Pub 점수
130

패키지 설치

flutter pub add invoiceninja

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

invoiceninja 패키지는 플러터 개발자가 앱 내에서 직접 PDF 청구서를 생성하고 결제를 처리할 수 있도록 합니다. Invoice Ninja API와 통합되어 여러 플랫폼에서 청구서 작성, 맞춤화 및 결제 수납을 간소화합니다. 개발자는 브랜딩이 적용된 전문적인 청구서를 프로그래밍으로 생성하여 고객에게 발송하고, 통합 게이트웨이를 통해 결제를 수락할 수 있습니다. 이 패키지는 Android, iOS, Web, macOS, Windows, Linux를 지원하여 크로스플랫폼 비즈니스 애플리케이션에 적합합니다. 프리랜서, 소규모 기업 및 서비스 제공자들의 재무 워크플로우를 간소화합니다.

사용 사례

  • 고객 송장 생성
  • 온라인 결제 처리
  • 청구 워크플로우 자동화
  • 다중 플랫폼 앱 지원
  • 브랜드 PDF 보내기
  • 결제 상태 추적

주요 기능

  • PDF 송장 생성
  • 결제 통합
  • 크로스 플랫폼 지원
  • API 기반 설계
  • 사용자 정의 템플릿
  • 실시간 결제 추적

적합한 대상

  • Freelancers
  • 소규모 기업 앱
  • 서비스 기반 플랫폼
  • 청구 시스템
  • 전자상거래 통합

고려 사항

  • Invoice Ninja 계정이 필요합니다
  • 외부 API에 의존합니다
  • 인터넷 연결이 필요합니다
  • 제한된 오프라인 기능
  • 레이트 제한이 적용될 수 있습니다
  • 인증 설정이 필요합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Invoice Ninja

Create PDF invoices and accept payments in a Flutter app

Sample

YouTube Video

YouTube Video

Features

  • Accept online payment in mobile, web and desktop Flutter apps
  • Supports many payment gateways including Stripe, PayPal and more
  • Create professional PDF invoices
  • Includes a self-service client portal
  • Many more features...

Overview

The package provides two main classes:

  • InvoiceNinja: Supports the public 'Storefront' routes which allow reading the list of products and creating/finding clients and invoices. Using this class works with restricted access to the account.
  • InvoiceNinjaAdmin: Supports the REST Admin API which uses token based security. Using this class requires an API token to access the account.

Storefront API

Configure
InvoiceNinja.configure(
  'KEY', // Set your company key or use 'KEY' to test
  url: 'https://demo.invoiceninja.com', // Set your selfhost app URL
  debugEnabled: true,
);
Load the product list
final products = await InvoiceNinja.products.load();
Find the product by key
final product = await InvoiceNinja.products.findByKey('product_key');
Create/persist the client
var client = Client.forContact(email: 'test@example.com');
client = await InvoiceNinja.clients.save(client);
Create/persist the invoice
var invoice = Invoice.forClient(client, products: [product]);
invoice = await InvoiceNinja.invoices.save(invoice);
Display the PDF invoice
launch(
  'https://docs.google.com/gview?embedded=true&url=${invoice.pdfUrl}',
  forceWebView: true,
);
Accept the payment
var invoiceKey = invoice.key;
launch(invoice.url);

// ...

final invoice = await InvoiceNinja.invoices.findByKey(invoiceKey);
if (invoice.isPaid) {
  // ...
}

You can use the WidgetsBindingObserver interface to run code when the app is resumed.

Consider giving issue #57536 a thumbs up to make this better in the future.

Admin API

Configure
InvoiceNinjaAdmin.configure(
  'TOKEN', // Set your API token or use 'TOKEN' to test
  url: 'https://demo.invoiceninja.com', // Set your selfhost app URL
  debugEnabled: true,
);
Find a client by email
final client = await InvoiceNinjaAdmin.clients.findByEmail(email);
Load all invoices
final payments = await InvoiceNinjaAdmin.payments.load();
Load the payments list
final payments = await InvoiceNinjaAdmin.payments.load();
Find a payment by id
final payment = await InvoiceNinjaAdmin.payments.findById(id);
Create/persist an invoice and auto-bill it
var invoice = Invoice.forClient(client, products: [product]);
invoice = await InvoiceNinjaAdmin.invoices.save(invoice, action: InvoiceAction.autoBill);

카테고리

의존성

의존성 목록 4 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.