पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv1.0.8

flutter_paypal_payment

इस पैकेज में अपने मोबाइल ऐप में PayPal भुगतान को सरल बनाता है। मुख्य विशेषताएं शामिल हैं अनुप्रयोग में बिना किसी बाधा के PayPal एकीकरण

AndroidiOSWebmacOSWindows
30-दिन डाउनलोड
4.2 हज़ार
लाइक
284
Pub अंक
130

पैकेज इंस्टॉल करें

flutter pub add flutter_paypal_payment

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

flutter_paypal_payment पैकेज फ्लटर एप्लिकेशन में कई प्लेटफॉर्मों पर 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 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट