flutter_paypal_payment_checkout

所属分类:支付接口
开发工具:Dart
文件大小:0KB
下载次数:0
上传日期:2023-10-14 18:16:05
上 传 者sh-1993
说明:  颤动贝宝支付结账,,
(flutter paypal payment checkout,,)

文件列表:
.flutter-plugins (181, 2023-10-15)
.flutter-plugins-dependencies (664, 2023-10-15)
.metadata (313, 2023-10-15)
CHANGELOG.md (453, 2023-10-15)
LICENSE (1063, 2023-10-15)
analysis_options.yaml (154, 2023-10-15)
example/ (0, 2023-10-15)
example/main.dart (3298, 2023-10-15)
lib/ (0, 2023-10-15)
lib/flutter_paypal_payment.dart (73, 2023-10-15)
lib/src/ (0, 2023-10-15)
lib/src/paypal_checkout_view.dart (5414, 2023-10-15)
lib/src/paypal_service.dart (3408, 2023-10-15)
pubspec.yaml (677, 2023-10-15)

# Flutter PayPal Payment Package The Flutter PayPal Payment Package is a convenient solution that enables seamless integration of PayPal payments into your mobile application. This README provides an overview of the package and guides you on how to use it effectively. ## 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: ```yaml dependencies: flutter_paypal_payment: ^1.0.0 ``` 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: ```dart PaypalCheckoutView( sandboxMode: true, clientId: "YOUR_CLIENT_ID", secretKey: "YOUR_SECRET_KEY", transactions: const [ // Define your transaction details here ], onSuccess: (Map params) async { // Handle successful payment }, onError: (error) { // Handle payment error }, onCancel: () { // Handle payment cancellationImplement the onSuccess, onError, and onCancel callbacks to handle the respective payment outcomes. }, ); ``` ## Donate If you would like to support me, please consider making a donation through one of the following links: * [PayPal](https://paypal.me/itharwat) Thank you for your support!

近期下载者

相关文件


收藏者