/
Paycard Service (java)
NOTE: Trivore ID Documentation has moved to https://trivoreid.com
The content on this site IS OUT OF DATE!
This space has been archived!
Please go ahead to the new site!
Paycard Service (java)
List of all options:
Query list of paycards
Create, get one, update and delete a single paycard
Get all PAN tokens
Create, get one, update and delete a single PAN token
Initialize service
TrivoreID sdk = TrivoreID.openIdClient();
PaycardServiceImpl paycardService = new PaycardServiceImpl(sdk.paycardService());
Paycard managment
// Get list of all user's paycards
Page<Paycard> paycards = paycardService.getAll("exampleUserID");
// Apply filter
Filter filter = Filter.equal("status", "ACTIVE");
paycards = paycardService.getAll("exampleUserID", new Criteria(filter));
// Add new paycard
Paycard paycard = new Paycard();
paycard.setName("ExampleName");
paycard.setPriority(1);
paycard.setMethod("creditcard");
paycard.setUserId(userId);
// This method returns paycard object with the generated ID
paycard = paycardService.create(paycard);
String cardId = paycard.getId();
// Get one, Update and Delete
paycard = paycardService.get(userId, cardId);
paycard.setValidTo("2022-10-20T07:17:17.606Z");
paycardService.update(paycard);
paycardService.delete(userId, cardId);
Paycard Service Models
, multiple selections available,
Related content
Paycard Service (python)
Paycard Service (python)
More like this
WalletService (java)
WalletService (java)
More like this
Authorisation Service (python)
Authorisation Service (python)
More like this
Subscription Service (java)
Subscription Service (java)
More like this
Contract Service (java)
Contract Service (java)
More like this
WalletService (python)
WalletService (python)
More like this