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

패키지 상세v1.2.4

braintree_payment

Deligence Technologies가 제공하는 Flutter 앱용 Braintree 결제 플러그인입니다. 이 결제 게이트웨이 플러그인을 사용하면 단 4단계만으로 Braintree Drop In 결제 UI를 쉽게 통합할 수 있습니다.

30일 다운로드
94
좋아요
29
Pub 점수
35

패키지 설치

flutter pub add braintree_payment

패키지 개요

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

braintree_payment 패키지는 Deligence Technologies가 개발한 Flutter 플러그인으로, Flutter 애플리케이션에 Braintree의 드롭인 결제 인터페이스를 원활하게 통합할 수 있도록 해줍니다. 단 네 단계만으로 안전한 결제 기능을 쉽게 추가할 수 있으며, 신용카드, PayPal 및 기타 결제 수단을 수락할 수 있습니다. 이 플러그인은 Android와 iOS 플랫폼 모두를 지원하며, 거래 처리를 위해 Braintree의 강력한 백엔드를 활용합니다. 신뢰성 있고 사용자 친화적인 결제 경험과 강력한 보안이 필요한 앱에 적합합니다.

사용 사례

  • 앱 내 구매
  • 전자상거래 체크아웃
  • 구독 결제
  • 디지털 서비스 결제

주요 기능

  • Braintree Drop In UI 통합
  • 다양한 결제 수단 지원
  • 보안 토큰화
  • 4단계로 간편한 설정
  • 크로스 플랫폼 호환성

적합한 대상

  • 모바일 전자상거래 앱
  • 구독 기반 서비스
  • 안전한 결제가 필요한 앱
  • Braintree를 사용하는 개발자

고려 사항

  • Braintree 계정 설정이 필요합니다
  • 올바른 API 키 구성이 필요합니다
  • 플랫폼별 권한이 필요합니다
  • Braintree 서버 가용성에 의존

원본 README

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

Braintree Payment

Available for Android and IOS

Braintree Payment plugin for Flutter apps by Deligence Technologies. This plugin lets you integrate Braintree DropIn payment UI in just 4 easy steps.

Table of Content

Supported Features

The plugin allows to use the Drop-In UI provided by braintree on android and iOS for following payment flows through braintree

  • credit card payment
  • paypal payment
  • google Pay (on Android only)

Note: Apple pay is not supported right now

Additionally a direct Paypal-Checkout Flow is supported (without using the drop-in UI). This is only handy in situations where you just want to provide a paypal only payment flow.

Otherwise the drop-in UI should be your prefered usage scenario.

Minimum Requirements

Android : To use this plugin you must migrate to AndroidX and set your minSdkVersion to at least 21.

Steps to Enable Payment

Step 1- To enable the payment support follow below given steps:

Paypal
Android:

To add support for Paypal Payment add below lines inside AndroidManifest.xml.

    <activity android:name="com.braintreepayments.api.BraintreeBrowserSwitchActivity"
        android:launchMode="singleTask">
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="${applicationId}.braintree" />
        </intent-filter>
    </activity>
IOS:
To add support for Paypal Payment on IOS. 

Basic insturctions from braintree:

1. Register URL Type
2. Update application delegate to setReturnUrlScheme
3. Update application delegate to pass the payment authorization URL to Braintree for finalization

For Detailed instuction follow steps here :- https://developers.braintreepayments.com/guides/paypal/client-side/ios/v4
Google Pay

To add support for Google Pay add below lines inside AndroidManifest.xml.

<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true"/>

Step 2- Import the plugin:

import 'package:braintree_payment/braintree_payment.dart';

Step 3- Create a object of BraintreePayment and pass Client nonce.

String clientNonce = " GET YOUR CLIENT NONCE FROM YOUR SERVER";

BraintreePayment braintreePayment = new BraintreePayment();
var data = await braintreePayment.showDropIn(
        nonce: clientNonce, amount: "2.0", enableGooglePay: true);

Step 4- Variable data will have the payment nonce. Send the paymne nonce to the server for further processing of the payment:

var data = await braintreePayment.showDropIn(
        nonce: clientNonce, amount: "2.0", enableGooglePay: true);
print("Response of the payment $data");

// In case of success
//{"status":"success","message":"Payment successful. Send the payment nonce to the server for the further processing.":"paymentNonce":"jdsfhedbyq772_34dfsf"}

// In case of Failure
//{"status":"fail","message":"User canceled the payment"}
Screenshot

License

BSD 3-Clause License

Copyright (c) 2019, Deligence Technologies Pvt. Ltd. (Meteor & MongoDB Official Partner)
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

카테고리

소스 저장소

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

아직 데이터가 없습니다.