cloudpayments_api 1.2.0 copy "cloudpayments_api: ^1.2.0" to clipboard
cloudpayments_api: ^1.2.0 copied to clipboard

This package allows implementing payment acceptance into mobile, web, desktop apps and works as an extension to the CloudPayments API

example/main.dart

import 'package:cloudpayments_api/cloudpayments_api.dart';
import 'package:dio/dio.dart';

void main() async {
  final paymentRequest = CardPaymentRequest(
    amount: '100',
    ipAddress: 'YOUR_IP_ADDRESS',
    cardCryptogramPacket: 'CARD_CRYPTOGRAM_PACKET',
  );

  final dio = Dio();

  final cloudPaymentsApi = CloudPaymentsApi(
    dio,
    cpAuthCredentials: const CpAuthCredentials(
      publicID: 'YOUR_PUBLIC_ID',
      apiPassword: 'YOUR_API_PASSWORD',
    ),
  );

  final result = await cloudPaymentsApi.chargeCryptogramPayment(paymentRequest);

  result.when(
    success: (info) {},
    incorrectlyRequest: (message) {},
    required3dsecure: (response) {},
    error: (info) {},
  );
}
4
likes
70
points
96
downloads

Documentation

API reference

Publisher

verified publisherdev.selamapp.ru

Weekly Downloads

This package allows implementing payment acceptance into mobile, web, desktop apps and works as an extension to the CloudPayments API

Repository (GitHub)
View/report issues

Topics

#payments #cloudpayments #card #bank #sberpay

License

MIT (license)

Dependencies

dio, equatable, freezed_annotation, json_annotation, retrofit

More

Packages that depend on cloudpayments_api