diff --git a/README.md b/README.md index 8222786..bc53599 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ npm install ```sh EMAIL=youremail@example.com PASS=yournikeaccountpassword -CVC=yourcreditcardcvc +CVV=yourcreditcardcvv ``` 2. In the bot.js file, edit the following lines. diff --git a/bot.js b/bot.js index ba63e72..01321f4 100644 --- a/bot.js +++ b/bot.js @@ -28,8 +28,8 @@ const runSnkrBot = () => { const email = process.env.EMAIL; const pass = process.env.PASS; - // cv_code: 3-digit credit card validation code for the card saved to your Nike.com account - const cv_code = process.env.CV_CODE + // cvv_code: 3-digit credit card validation value for the card saved to your Nike.com account + const cvv_code = process.env.CVV // size: the shoe size, as you see in the table of sizes on a product page, e.g., 'M 9 / W 10.5' const size = 'US M 9.5 / W 11'; @@ -273,7 +273,7 @@ const runSnkrBot = () => { () => (document.getElementById("cvNumber").focus()) ); await target_frame.waitFor(1000); - await page.keyboard.type(cv_code, {delay: 10}); + await page.keyboard.type(cvv_code, {delay: 10}); //#### LOG / DEBUG