パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.0.8

flutter_paypal_payment

このパッケージは、モバイルアプリへのPayPal決済の統合を簡素化します。主な機能には、アプリ内でのスムーズなPayPal統合が含まれます

AndroidiOSWebmacOSWindows
30日間ダウンロード
4240
いいね数
284
Pub ポイント
130

パッケージをインストール

flutter pub add flutter_paypal_payment

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

flutter_paypal_payment パッケージは、複数のプラットフォームで Flutter アプリケーションに PayPal 支払いをスムーズに統合できるようにします。最小限の設定で安全なアプリ内決済機能を追加するプロセスを簡素化します。開発者は、取引を簡単に開始し、支払い応答を処理し、アプリ内でチェックアウトフローを管理できます。このパッケージは Android、iOS、Web、macOS、Windows をサポートしており、PayPal を支払いオプションとして必要とするクロスプラットフォームプロジェクトに最適です。

用途

  • アプリ内購入
  • ECモバイルアプリ
  • サブスクリプションサービス
  • デジタル製品の販売
  • オンラインサービスの支払い

主な機能

  • クロスプラットフォーム対応
  • シンプルな API インテグレーション
  • セキュアな決済処理
  • リアルタイム取引処理
  • 組み込みチェックアウトフロー

適している対象

  • モバイルECアプリ
  • 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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト