Skip to content

Commit

Permalink
remove duplicate tokenize call in tappedVaultCheckout (#1109)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxdesmarais authored Oct 6, 2023
1 parent 431f1c9 commit f24b3c5
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,6 @@ class BraintreeDemoPayPalNativeCheckoutViewController: BraintreeDemoPaymentButto
}
self.completionBlock(nonce)
}

payPalNativeCheckoutClient.tokenize(request) { nonce, error in
sender.isEnabled = true

guard let nonce else {
self.progressBlock(error?.localizedDescription)
return
}
self.completionBlock(nonce)
}
}

@objc func tappedCheckoutWithVault(_ sender: UIButton) {
Expand Down

0 comments on commit f24b3c5

Please sign in to comment.