# Web Payments SDK and nonce for CreateCustomerCardAsync

**URL:** <https://developer.squareup.com/forums/t/web-payments-sdk-and-nonce-for-createcustomercardasync/3199>\
**Category:** Questions\
**Tags:** customers-api, payment-form, web-payments-sdk\
**Created:** [August 11, 2021, 7:32pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-and-nonce-for-createcustomercardasync/3199 "2021-08-11T19:32:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmilleriec](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@jmilleriec](https://developer.squareup.com/forums/u/jmilleriec)\
**Post date:** [August 11, 2021, 7:32pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-and-nonce-for-createcustomercardasync/3199/1 "2021-08-11T19:32:13Z")

</div>

I’m trying to move from sqpaymentform to the web payments sdk, i’m generating the token just fine, but i’m simply trying to add the card to the customer’s profile. In sqpaymentform, we called verifyBuyer which would create the nonce necessary to add the card on file, without making a payment.

What is the corresponding call in web payments sdk that allows me to generate a nonce without taking a payment?

Thanks,  
Jim

---

<div class="post-metadata">

**Author:** ![jmilleriec](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@jmilleriec](https://developer.squareup.com/forums/u/jmilleriec)\
**Post date:** [August 11, 2021, 7:55pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-and-nonce-for-createcustomercardasync/3199/2 "2021-08-11T19:55:16Z")

</div>

I actually think I had that backwards, i get the token from the verifyBuyer call, and the nonce was already received from the cardNonceResponseReceived event. Still need to know how to get a nonce, as I can’t make the CreateCustomerCardAsync without a nonce.

Thanks,  
Jim

---

<div class="post-metadata">

**Author:** ![jmilleriec](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@jmilleriec](https://developer.squareup.com/forums/u/jmilleriec)\
**Post date:** [August 11, 2021, 7:56pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-and-nonce-for-createcustomercardasync/3199/3 "2021-08-11T19:56:01Z")

</div>

And I was able to call verifyBuyer, but it doesn’t contain a nonce either.

Thanks,  
Jim

---

<div class="post-metadata">

**Author:** ![jmilleriec](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@jmilleriec](https://developer.squareup.com/forums/u/jmilleriec)\
**Post date:** [August 11, 2021, 10:52pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-and-nonce-for-createcustomercardasync/3199/4 "2021-08-11T22:52:17Z")

</div>

Apologies, I figured this out, the nonce was actually the token that was coming back from the original call to tokenize. Sorry about the confusion… Feel free to delete this thread if not useful.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [August 12, 2021, 3:46pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-and-nonce-for-createcustomercardasync/3199/5 "2021-08-12T15:46:36Z")

</div>

Glad to see that you figured it out. Please feel free to reach out if you have any additional questions. 🙂
