Tokenized Payments Integration
You can store and get stored card details from the vault.
Get tokenized payment details
- Get details of the stored card to make payment on another PG.
self.paymentParam.userCredentials = @"<user_credentials>";
self.paymentParam.cardToken = @"<cardToken>";
self.paymentParam.amount = @"100";
self.paymentParam.currency = @"INR";
self.paymentParamForPassing.hashes.getTokenizedPaymentDetailHash = @"hash";
- Call the
getTokenizedPaymentDetails
method to integrate this similar to the following:
[webServiceResponse getTokenizedPaymentDetails.paymentParamForPassing withCompletionBlock:^(PayUModelTokenizedPaymentDetails *tokenizedPaymentdetails,NSString *errorMessage, id extraParam) {
if (errorMessage) {
// Something went wrong errorMessage is having the Detail
}
else{
//It is good to go & deleteStoredCardMessage is having the full detail of it
}
}];
Get tokenised stored cards
This API is helpful in getting all the stored cards for a particular user.
- Set the
userCredentials
in the payment params similar to the following:
self.paymentParam.userCredentials = @"<user_credentials>";
self.paymentParamForPassing.hashes.getTokenizeddStoredCardHash = @"hash";
- Call the getTokenizedStoredCards method to integrate this API similar to the following:
[webServiceResponse getTokenizedStoredCards:self.paymentParamForPassing withCompletionBlock:^(NSDictionary *dictStoredCard,NSString *errorMessage, id extraParam) {
if (errorMessage) {
// Something went wrong errorMessage is having the Detail
}
else{
//It is good to go & deleteStoredCardMessage is having the full detail of it
}
}];
Delete tokenised stored cards
This API is helpful in deleting stored cards.
- Set the
userCredentials
in the payment params similar to the following:
self.paymentParam.userCredentials = @"<user_credentials>";
self.paymentParam.cardToken = @"<cardToken>";
self.paymentParam.networkToken = @"<networkToken>";
self.paymentParam.issuerToken = @"<issuerToken>";
self.paymentParamForPassing.hashes.deleteTokenizedStoredCardHash = @"hash";
- Call the
deleteTokenizedStoredCard
method to integrate this API similar to the following:
[webServiceResponse deleteTokenizedStoredCard:self.paymentParamForPassing withCompletionBlock:^(NSString *deleteStoredCardStatus, NSString *deleteStoredCardMessage, NSString *errorMessage, id extraParam) {
if (errorMessage) {
// Something went wrong errorMessage is having the Detail
}
else{
//It is good to go & deleteStoredCardMessage is having the full detail of it
}
}];
Updated 2 months ago