Skip to content

Commit

Permalink
cocoapods pipeline remove ref to CardPayments in request
Browse files Browse the repository at this point in the history
  • Loading branch information
KunJeongPark committed Jul 21, 2023
1 parent 01b0c49 commit a1fc098
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ struct ConfirmPaymentSourceRequest: APIRequest {
case attributes
}

private struct Card: Encodable {
private struct EncodedCard: Encodable {

let number: String
let securityCode: String
Expand Down Expand Up @@ -138,11 +138,11 @@ struct ConfirmPaymentSourceRequest: APIRequest {

private struct PaymentSource: Encodable {

var card: Card
var card: EncodedCard
var customer: Customer?

init(card: CardPayments.Card, scaType: SCA, vault: Vault?) {
self.card = Card(
init(card: Card, scaType: SCA, vault: Vault?) {
self.card = EncodedCard(
number: card.number,
securityCode: card.securityCode,
billingAddress: card.billingAddress,
Expand Down

0 comments on commit a1fc098

Please sign in to comment.