FLUTTER ECOSYSTEM

MadBrains/Sberbank-Acquiring-SDK-Flutter

Flutter Sberbank Acquiring SDK는 모바일 애플리케이션에 결제를 간편하게 통합할 수 있는 방법입니다.

Sberbank-Acquiring-SDK-Flutter 프로젝트 이미지
Stars
14
Forks
4
최근 푸시(UTC)
2023. 5. 26.
프로젝트 상태
활성
Mad Brains GitHub avatar
GITHUB Organization

Mad Brains ↗

AI, mobile, web development / Software outsource company

언어DartShellRubyMakefileSwiftKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 8 개

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

https://raw.githubusercontent.com/MadBrains/Sberbank-Acquiring-SDK-Flutter/HEAD/docs/banner.png https://raw.githubusercontent.com/MadBrains/Sberbank-Acquiring-SDK-Flutter/HEAD/docs/sber_sdk.png

Flutter Sberbank Acquiring SDK

Read this in Russian

Acquiring SDK allows you to integrate Sberbank Internet Acquiring into mobile applications for iOS and Android platforms.

Available API Documentation.

We solve problems of brand presence on mobile devices, specializing in development of mobile applications and services in the b2c segment.

https://raw.githubusercontent.com/MadBrains/Sberbank-Acquiring-SDK-Flutter/HEAD/docs/get_started_stroke.png

Subscribe for the latest updates:
https://raw.githubusercontent.com/MadBrains/Sberbank-Acquiring-SDK-Flutter/HEAD/docs/follow_us_stroke.png


SDK Features

  • Making payments (including recurring payments);
  • Making payments via Apple Pay or Google Pay (including recurring payments);
  • Related payments;
  • Integration with online checkouts;

Installing

Add this to your package's pubspec.yaml file:

dependencies:
  sberbank_acquiring: <lastles>

Before usage

To get started with the SDK, you'll need:

  • userName - The login of the vendor's service account;
  • password - Password of the vendor account;
  • token – The value that is used to authenticate the merchant when sending requests to the payment gateway. You do not need to pass the userName and password parameters when passing this parameter. To obtain a public key, contact technical support.

These values are issued in your personal account after connecting to Sberbank Internet Acquiring.

SDK allows you to configure operating mode (debug / prod), by default - debug. The SDK also allows you to configure request proxying, by default all requests go to Sberbank servers.

To configure the operation mode, set the following parameters:

final SberbankAcquiring acquiring = SberbankAcquiring(
  SberbankAcquiringConfig.credential(
    userName: userName,
    password: password,
    isDebugMode: false,
  ),
);

If you want to use token, use the following constructor:

final SberbankAcquiring acquiring = SberbankAcquiring(
  SberbankAcquiringConfig.token(
    token: token,
    isDebugMode: false,
  ),
);

If you want to use a proxy, use the following constructor:

final SberbankAcquiring acquiring = SberbankAcquiring(
  SberbankAcquiringConfig.proxy(
    proxyDomain: 'server.com',
    proxyPath: 'api/v1/',
    globalHeaders: <String, String>{'auth': 'test'},
    mapping: (AcquiringRequest request, bool isDebugMode) {
      if(request is RegisterRequest) return ProxyMapping(path: '/register');
      return;
    }
  ),
);

Example

The Example is in the corresponding folder