Skip to content

Commit

Permalink
Merge pull request #40 from xendit/fix/missing-cvn-for-legacy-api
Browse files Browse the repository at this point in the history
fix: sending cvn for deprecated endpoint
  • Loading branch information
javiersuweijie authored Sep 16, 2021
2 parents f520b9c + f3d059f commit 7295ee6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Xendit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Xendit"
s.version = "3.4.0"
s.version = "3.4.1"
s.summary = "Xendit is an API for accepting payments online"
s.homepage = "https://www.xendit.co"
s.license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions Xendit/Models/DTOs/XenditTokenizationRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import Foundation
@available(*, deprecated, message: "Use init(cardData: XenditCardData, isSingleUse: Bool, shouldAuthenticate: Bool, amount: NSNumber, currency: String) instead" )
public init(cardData: CardData, shouldAuthenticate: Bool) {
self.cardData = XenditCardData.init(cardNumber: cardData.cardNumber, cardExpMonth: cardData.cardExpMonth, cardExpYear: cardData.cardExpYear)
self.cardData.cardCvn = cardData.cardCvn
self.isSingleUse = !cardData.isMultipleUse
self.shouldAuthenticate = shouldAuthenticate
self.amount = cardData.amount
Expand Down

0 comments on commit 7295ee6

Please sign in to comment.