{"repo":"JacobBennett/StripeTestToken","free":true,"listed":false,"github":"https://github.com/JacobBennett/StripeTestToken","clone":"git clone https://github.com/JacobBennett/StripeTestToken.git","description":"Use this to quickly generate Stripe test tokens for successful or exceptional responses from Stripe.","language":"PHP","stars":146,"topics":["php","stripe"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Stripe Test Tokens Use this to quickly create Stripe test tokens for successful and exceptional responses from Stripe. Install Usage Docs Find full descriptions at original Stripe Docs Reference Using Methods To use any of the methods below, call the listed method as a static on the StripeTestToken class. If you only want to return the corresponding card number, such as with Selenium or Laravel Dusk, you can call the same method on the StripeCardNumber class. Test card numbers Genuine card information cannot be used in test mode. Instead, use any of the following test card methods to create a successful payment token: Method --- validVisa validVisaDebit validMastercard validMastercardDebit validMastercardPrepaid validAmex validDiscover validDinersClub validJCB Testing for specific responses and errors The following methods can be used to create tokens that produce specific responses—useful for testing different scenarios and error codes. Verification checks only run when the required information is provided (e.g., for cvc check to fail, a CVC code must be provided). Method Description --- --- successDirectToBalance Charge succeeds and funds will be added directly to your available balance (bypassing your pending balance). addressZipFail The address line1 check and address zip check verifications fail. If your account is blocking payments that fail ZIP code validation, the charge is declined. addressFail Charge succeeds but the address line1 check verification fails. zipFail T","default_branch":null,"files":null,"tree":[],"storefront":"/r/JacobBennett","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JacobBennett/StripeTestToken/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}