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

패키지 상세v1.0.8

flutter_paypal_payment

이 패키지는 모바일 앱에 PayPal 결제를 통합하는 것을 간소화합니다. 주요 기능으로는 앱 내에서 원활한 PayPal 통합이 포함됩니다

AndroidiOSWebmacOSWindows
30일 다운로드
4.2천
좋아요
284
Pub 점수
130

패키지 설치

flutter pub add flutter_paypal_payment

패키지 개요

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

flutter_paypal_payment 패키지는 여러 플랫폼에서 Flutter 애플리케이션에 PayPal 결제를 원활하게 통합할 수 있도록 합니다. 최소한의 설정으로 안전한 앱 내 결제 기능을 추가하는 과정을 간소화합니다. 개발자는 거래를 쉽게 시작하고, 결제 응답을 처리하며, 앱 내에서 체크아웃 흐름을 관리할 수 있습니다. 이 패키지는 Android, iOS, Web, macOS 및 Windows를 지원하여 PayPal을 결제 옵션으로 필요로 하는 크로스플랫폼 프로젝트에 이상적입니다.

사용 사례

  • 앱 내 구매
  • 전자상거래 모바일 앱
  • 구독 서비스
  • 디지털 제품 판매
  • 온라인 서비스 결제

주요 기능

  • 크로스 플랫폼 지원
  • 간단한 API 통합
  • 안전한 결제 처리
  • 실시간 거래 처리
  • 내장된 체크아웃 흐름

적합한 대상

  • 모바일 전자상거래 앱
  • SaaS 플랫폼
  • 디지털 콘텐츠 공급자
  • 다중 플랫폼 앱
  • 빠른 PayPal 통합을 원하는 개발자

고려 사항

  • PayPal 계정 설정이 필요합니다
  • 적절한 샌드박스/테스트 환경이 필요합니다
  • 네트워크 연결에 의존합니다
  • 추가적인 백엔드 검증이 필요할 수 있습니다
  • 플랫폼별 구성이 필요합니다

원본 README

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

Flutter PayPal Payment Package

The Flutter PayPal Payment Package provides an easy-to-integrate solution for enabling PayPal payments in your Flutter mobile application. This package allows for a seamless checkout experience with both sandbox and production environments.

Features

  • Seamless PayPal Integration: Easily integrate PayPal payments into your Flutter app.
  • Sandbox Mode Support: Test payments in a safe sandbox environment before going live.
  • Customizable Transactions: Define custom transaction details for each payment.
  • Payment Outcome Callbacks: Handle success, error, and cancellation events for payments.

Installation

To install the Flutter PayPal Payment Package, follow these steps

  1. Add the package to your project's dependencies in the pubspec.yaml file:

    dependencies:
      flutter_paypal_payment: ^1.0.7
    
  2. Run the following command to fetch the package:

    flutter pub get
    

Usage

  1. Import the package into your Dart file:

    import 'package:flutter_paypal_payment/flutter_paypal_payment.dart';
    
  2. Navigate to the PayPal checkout view with the desired configuration:

 Navigator.of(context).push(MaterialPageRoute(
                  builder: (BuildContext context) => PaypalCheckoutView(
                    sandboxMode: true,
                    clientId: "",
                    secretKey: "",
                    transactions: const [
                      {
                        "amount": {
                          "total": '70',
                          "currency": "USD",
                          "details": {
                            "subtotal": '70',
                            "shipping": '0',
                            "shipping_discount": 0
                          }
                        },
                        "description": "The payment transaction description.",
                        // "payment_options": {
                        //   "allowed_payment_method":
                        //       "INSTANT_FUNDING_SOURCE"
                        // },
                        "item_list": {
                          "items": [
                            {
                              "name": "Apple",
                              "quantity": 4,
                              "price": '5',
                              "currency": "USD"
                            },
                            {
                              "name": "Pineapple",
                              "quantity": 5,
                              "price": '10',
                              "currency": "USD"
                            }
                          ],

                          // shipping address is not required though
                          //   "shipping_address": {
                          //     "recipient_name": "tharwat",
                          //     "line1": "Alexandria",
                          //     "line2": "",
                          //     "city": "Alexandria",
                          //     "country_code": "EG",
                          //     "postal_code": "21505",
                          //     "phone": "+00000000",
                          //     "state": "Alexandria"
                          //  },
                        }
                      }
                    ],
                    note: "Contact us for any questions on your order.",
                    onSuccess: (Map params) async {
                      print("onSuccess: $params");
                    },
                    onError: (error) {
                      print("onError: $error");
                      Navigator.pop(context);
                    },
                    onCancel: () {
                      print('cancelled:');
                    },
                  ),
                ));

⚡ Donate

If you would like to support me, please consider making a donation through one of the following links:

Thank you for your support!

카테고리

의존성

의존성 목록 2 개

소스 저장소

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