Skip to content

Commit

Permalink
refactor: renaming encryptCard to encryptCardData
Browse files Browse the repository at this point in the history
  • Loading branch information
grgmgd committed Jan 18, 2024
1 parent 41f66f7 commit 7e740b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/PayrailsCSE/PayrailsCSE.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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"])
}
Expand Down

0 comments on commit 7e740b5

Please sign in to comment.