Create apple pay payment method in Braintree

Viewed 33

I am currently on integration apple pay via Braintree for iOS. As declared in Braintree guide, we need to send a payment method nonce for creating a new payment method in backend, but according to apple pay Braintree client side guide, we can only retrieve this nonce during checkout for particular transaction.

So which nonce should we send for creating a payment method (not for the transaction). It is unfortunately omitted in documentation. Should it be like this example dummy payment to retrieve a nonce, similar to PayPal?

let applePayClient = BTApplePayClient(apiClient: btapiClient)
let payment = PKPayment()
applePayClient.tokenizeApplePay(payment, completion: { nonce, error in          
//send nonce to server to create a payment method
0 Answers
Related