tinkoff_acquiring

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

tinkoff acquiring

Flutter Tinkoff Acquiring SDK

Read this in Russian
Acquiring SDK allows you to integrate Tinkoff Internet Acquiring into mobile applications for iOS and Android platforms.
Available API Documentation.
SDK Features #

Making payments (including recurring payments);
Saving customers bank cards;
Getting information about customers and saved bank cards;
Management of saved bank cards;
Integration with online checkouts;
Payment through the Fast Payment System (SBP) by QR;

Installing #
Add this to your package's pubspec.yaml file:
dependencies:
tinkoff_acquiring: ^3.0.10
tinkoff_acquiring_flutter: ^3.0.10
copied to clipboard
Before usage #
To get started with the SDK, you'll need:

Terminal key - seller's terminal key;
Password - terminal password (optional);
Public key – public key. Used to encrypt data. Required to integrate your application with Tinkoff Internet acquiring.

These values are issued in your personal account after connecting to Tinkoff 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 Tinkoff servers.
Credential #
To configure the operation mode, set the following parameters:
final TinkoffAcquiring acquiring = TinkoffAcquiring(
TinkoffAcquiringConfig.credential(
terminalKey: terminalKey,
password: password, // if not passed, it will work in passwordless mode
isDebugMode: false,
),
);
copied to clipboard
Token #
If your request is signed on the side, then you can use the following constructor:
final TinkoffAcquiring acquiring = TinkoffAcquiring(
TinkoffAcquiringConfig.token(
terminalKey: terminalKey,
isDebugMode: false,
),
);
copied to clipboard
In this case, you need to add signToken to the request model:
InitRequest(
signToken: ...,
...
)

request.copyWith(signToken: ...);
copied to clipboard
Proxy #
If you want to use a proxy, use the following constructor:
final TinkoffAcquiring acquiring = TinkoffAcquiring(
TinkoffAcquiringConfig.proxy(
proxyDomain: 'myserver.com',
proxyPath: '/acquiring',
isDebugMode: false,
globalHeaders: <String, String>{...},
mapping: (AcquiringRequest request, bool isDebugMode) {
if (request is InitRequest) {
return const ProxyRequest(
headers: <String, String>{...},
methodPath: '/Init',
);
}

...

return null;
},
),
);
copied to clipboard
Example #
The Example is in the corresponding folder
SDK workflow #

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.