From 7e740b53e8f40fd77806cde1a11f033e77cda443 Mon Sep 17 00:00:00 2001 From: George Maged Date: Thu, 18 Jan 2024 14:54:36 +0200 Subject: [PATCH] refactor: renaming encryptCard to encryptCardData --- Sources/PayrailsCSE/PayrailsCSE.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/PayrailsCSE/PayrailsCSE.swift b/Sources/PayrailsCSE/PayrailsCSE.swift index 8f5ba7c..ed8a84b 100644 --- a/Sources/PayrailsCSE/PayrailsCSE.swift +++ b/Sources/PayrailsCSE/PayrailsCSE.swift @@ -22,7 +22,7 @@ public struct PayrailsCSE { cseConfig = config } - public func encryptCard(card: Card) throws -> String { + public func encryptCardData(card: Card) throws -> String { let jsonCard = try JSONEncoder().encode(card) guard let cseConfig = cseConfig else { @@ -61,7 +61,7 @@ public struct PayrailsCSE { securityCode: securityCode ) - let encryptedCard = try! encryptCard(card: card) + let encryptedCard = try! encryptCardData(card: card) guard let tokenizeURL = URL(string: cseConfig.tokenization.links.tokenize.href) else { throw NSError(domain: "URLParsingError", code: 0, userInfo: [NSLocalizedDescriptionKey: "Invalid URL"]) }