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

outdatedDart 1 only

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_HERE"
  };

  Future response = nps.createPaymentMethodToken(nps, createPaymentMethodTokenParams);
  response.then((resp) => jsonPrettyPrint(resp))
      .catchError((error) => print);
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

http, xml, xml2json

More

Packages that depend on nps_sdk