Skip to content

Commit

Permalink
Merge pull request #82 from pokepay/feature/cardholder-name-veritrans
Browse files Browse the repository at this point in the history
Add cardholderName param to GetVeritransToken
  • Loading branch information
ZweWaiYanHtet authored Aug 7, 2024
2 parents c87fe56 + a08231f commit 386af9d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Pokepay.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Pokepay"
s.version = "2.0.15"
s.version = "2.0.16"
s.summary = "Pokepay iOS SDK."
s.description = <<-DESC
iOS SDK for Pokepay written in Swift.
Expand Down
2 changes: 1 addition & 1 deletion Pokepay.xcodeproj/Pokepay_Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0.15</string>
<string>2.0.16</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ public extension VeritransAPI.Token {
public let cardExpiryDate: String
public let securityCode: String
public let tokenApiKey: String
public let cardholderName: String

public typealias Response = VeritransToken

public init(cardNumber: String, cardExpiryDate: String, securityCode: String, tokenApiKey: String) {
public init(cardNumber: String, cardExpiryDate: String, securityCode: String, tokenApiKey: String, cardholderName: String) {
self.cardNumber = cardNumber
self.cardExpiryDate = cardExpiryDate
self.securityCode = securityCode
self.tokenApiKey = tokenApiKey
self.cardholderName = cardholderName
}

public var method: HTTPMethod {
Expand All @@ -29,7 +31,8 @@ public extension VeritransAPI.Token {
"card_number": cardNumber,
"card_expire": cardExpiryDate,
"security_code": securityCode,
"token_api_key": tokenApiKey
"token_api_key": tokenApiKey,
"cardholder_name": cardholderName
]
}
}
Expand Down

0 comments on commit 386af9d

Please sign in to comment.