apollopay 1.1.1 apollopay: ^1.1.1 copied to clipboard
An Sdk for Apollopay API requests.
example/apollopay_example.dart
import 'package:apollopay/src/api/apollopay.dart';
void main() {
//Create an instance of Apollopay.
//Get your application token from your Apollopay account or from your Apollopay representative.
final apollopay = Apollopay(
applicationToken:
'fc1ca73c716cd6227a31f6f9c459dcb4afca447b02cb511f820bf483b38f468d231d6b425fd2d6de28d3a19f42f27e88547bebd4f38561bff61f6a51f0de8bcd',
apiUrl: 'http://127.0.0.1:8080',
apiVersion: 'v1.0',
clientPublicKey: 'abc123',
clientPrivateKey: '123abc');
//Call a service method.
apollopay.cardsService.getCard('card_451f61294cc0cb39ba80e40617261fca');
}