Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madbrains/sberbank-acquiring-sdk-flutter
Flutter Sberbank Acquiring SDK is a simple way to integrate payments into your mobile application.
https://github.com/madbrains/sberbank-acquiring-sdk-flutter
apple-pay applepay dart flutter google-pay googlepay payment sber sberbank
Last synced: about 1 month ago
JSON representation
Flutter Sberbank Acquiring SDK is a simple way to integrate payments into your mobile application.
- Host: GitHub
- URL: https://github.com/madbrains/sberbank-acquiring-sdk-flutter
- Owner: MadBrains
- License: mit
- Created: 2021-05-14T06:06:01.000Z (over 3 years ago)
- Default Branch: dev
- Last Pushed: 2023-05-26T10:58:19.000Z (over 1 year ago)
- Last Synced: 2023-08-20T23:01:21.897Z (over 1 year ago)
- Topics: apple-pay, applepay, dart, flutter, google-pay, googlepay, payment, sber, sberbank
- Language: Dart
- Homepage: https://pub.dev/packages/sberbank_acquiring
- Size: 2.4 MB
- Stars: 13
- Watchers: 4
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Flutter Sberbank Acquiring SDK
[Read this in Russian](README.ru.md)
Acquiring SDK allows you to integrate [Sberbank Internet Acquiring][acquiring] into mobile applications for iOS and Android platforms.
[Available API Documentation][documentation].
We solve problems of brand presence on mobile devices, specializing in development of mobile applications and services in the b2c segment.
Subscribe for the latest updates:
## 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:
```yaml
dependencies:
sberbank_acquiring:
```## 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][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:
```dart
final SberbankAcquiring acquiring = SberbankAcquiring(
SberbankAcquiringConfig.credential(
userName: userName,
password: password,
isDebugMode: false,
),
);
```If you want to use `token`, use the following constructor:
```dart
final SberbankAcquiring acquiring = SberbankAcquiring(
SberbankAcquiringConfig.token(
token: token,
isDebugMode: false,
),
);
```If you want to use a `proxy`, use the following constructor:
```dart
final SberbankAcquiring acquiring = SberbankAcquiring(
SberbankAcquiringConfig.proxy(
proxyDomain: 'server.com',
proxyPath: 'api/v1/',
globalHeaders: {'auth': 'test'},
mapping: (AcquiringRequest request, bool isDebugMode) {
if(request is RegisterRequest) return ProxyMapping(path: '/register');
return;
}
),
);
```## Example
The [Example][example] is in the corresponding folder
[documentation]: https://securepayments.sberbank.ru/wiki/doku.php/integration:api:rest:start
[acquiring]: https://securepayments.sberbank.ru/wiki/doku.php/main_page
[example]: https://github.com/MadBrains/Sberbank-Acquiring-SDK-Flutter/tree/main/example/