@@ -19,7 +19,7 @@ Acquiring SDK allows you to integrate [Sberbank Internet Acquiring][acquiring] i
1919Add this to your package's pubspec.yaml file:
2020``` yaml
2121dependencies :
22- sberbank_acquiring : 2.0.0
22+ sberbank_acquiring : <lastles>
2323` ` `
2424
2525## Before usage
@@ -37,10 +37,10 @@ The SDK also allows you to configure request proxying, by default all requests g
3737To configure the operation mode, set the following parameters :
3838` ` ` dart
3939final SberbankAcquiring acquiring = SberbankAcquiring(
40- SberbankAcquiringConfig(
40+ SberbankAcquiringConfig.credential (
4141 userName: userName,
4242 password: password,
43- debug : false,
43+ isDebugMode : false,
4444 ),
4545);
4646` ` `
@@ -50,6 +50,7 @@ If you want to use `token`, use the following constructor:
5050final SberbankAcquiring acquiring = SberbankAcquiring(
5151 SberbankAcquiringConfig.token(
5252 token: token,
53+ isDebugMode: false,
5354 ),
5455);
5556` ` `
@@ -58,7 +59,13 @@ If you want to use a `proxy`, use the following constructor:
5859` ` ` dart
5960final SberbankAcquiring acquiring = SberbankAcquiring(
6061 SberbankAcquiringConfig.proxy(
61- proxyUrl: 'https://server.com/',
62+ proxyDomain: 'server.com',
63+ proxyPath: 'api/v1/',
64+ globalHeaders: <String, String>{'auth': 'test'},
65+ mapping: (AcquiringRequest request, bool isDebugMode) {
66+ if(request is RegisterRequest) return ProxyMapping(path: '/register');
67+ return;
68+ }
6269 ),
6370);
6471` ` `
@@ -68,6 +75,6 @@ final SberbankAcquiring acquiring = SberbankAcquiring(
6875The [Example][example] is in the corresponding folder
6976
7077
71- [documentation] : https://securepayments.sberbank.ru/wiki/doku.php/integration:paymentpage:paymentpage_design
78+ [documentation] : https://securepayments.sberbank.ru/wiki/doku.php/integration:api:rest:start
7279[acquiring] : https://securepayments.sberbank.ru/wiki/doku.php/main_page
7380[example] : https://github.com/MadBrains/Sberbank-Acquiring-SDK-Flutter/tree/main/example/
0 commit comments