Card Management
Stitch provides standalone management APIs that can be used to tokenise card details captured using the Secure Fields SDK. The returned card ID is a representation of the APIs and is an alternative to creating and granting consent tokens.
Add Card
Initiate an addCard mutation request to the GraphQL API URL https://api.stitch.money/graphql to tokenise a card. The returned id field is the card ID (token) that can be stored and used for subsequent transaction initiations.
Card Verification
To perform verified tokenisation, initiate a R0 transaction using the captured card details. Set the amount.quantity variable to 0. The card.id returned is the Card Token. See this documentation for handling the 3DS interaction and transaction responses.
Delete Card
Initiate a deleteCard mutation request to the GraphQL API URL https://api.stitch.money/graphql to delete a stored token. This API should be used if a card is unlinked from your platform. The mutation returns a boolean to indicate the result of the operation.