nps_sdk 1.0.0 copy "nps_sdk: ^1.0.0" to clipboard
nps_sdk: ^1.0.0 copied to clipboard

API with which you can interact with NPS's platform.

example/nps_sdk_example.dart

import 'dart:async';

import 'package:nps_sdk/nps_sdk.dart';

main(List<String> arguments) async {
  Nps nps = new Nps(sandbox);

  Map createPaymentMethodTokenParams = {
    "psp_Version": "2.2",
    "psp_MerchantId": "sdk_test",
    "psp_CardInputDetails": {
      "Number": "4507990000000010",
      "ExpirationDate": "2501",
      "SecurityCode": "123",
      "HolderName": "JOHN DOE"
    },
    "psp_ClientSession": "YOUR_CLIENT_SESSION"
  };

  Future response = nps.createPaymentMethodToken(nps, createPaymentMethodTokenParams);
  response.then((resp) => jsonPrettyPrint(resp))
          .catchError((error) => print);
}
0
likes
40
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

API with which you can interact with NPS's platform.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

MIT (license)

Dependencies

http, xml, xml2json

More

Packages that depend on nps_sdk