Virtual cards

    Learn more about virtual cards.

    Use the retrieve card details endpoint to retrieve virtual card information, including card number, expiration date, and CVC.

    For PCI-DSS compliance, you should limit retrieval of virtual card information to the dashboard. If the API is used to retrieve card information, or if virtual card information is exported from the Dashboard, the information should be stored in a password manager or otherwise encrypted.

    curl https://api.stripe.com/v1/issuing/cards/ic_1Cm3paIyNTgGDVfzBqq1uqxR/details \ -u sk_test_4eC39HqLyjWDarjtT1zdp7dc:
    # Set your secret key. Remember to switch to your live secret key in production! # See your keys here: https://dashboard.stripe.com/account/apikeys Stripe.api_key = 'sk_test_4eC39HqLyjWDarjtT1zdp7dc' card_details = Stripe::Issuing::Card.details('ic_1Cm3paIyNTgGDVfzBqq1uqxR')
    # Set your secret key. Remember to switch to your live secret key in production! # See your keys here: https://dashboard.stripe.com/account/apikeys stripe.api_key = 'sk_test_4eC39HqLyjWDarjtT1zdp7dc' card_details = stripe.issuing.Card.details('ic_1Cm3paIyNTgGDVfzBqq1uqxR')
    // Set your secret key. Remember to switch to your live secret key in production! // See your keys here: https://dashboard.stripe.com/account/apikeys \Stripe\Stripe::setApiKey('sk_test_4eC39HqLyjWDarjtT1zdp7dc'); $card = \Stripe\Issuing\Card::retrieve('ic_1Cm3paIyNTgGDVfzBqq1uqxR'); $details = $card->details();
    // Set your secret key. Remember to switch to your live secret key in production! // See your keys here: https://dashboard.stripe.com/account/apikeys Stripe.apiKey = "sk_test_4eC39HqLyjWDarjtT1zdp7dc"; Card card = Card.retrieve("ic_1Cm3paIyNTgGDVfzBqq1uqxR"); card.details();
    // Set your secret key. Remember to switch to your live secret key in production! // See your keys here: https://dashboard.stripe.com/account/apikeys const stripe = require('stripe')('sk_test_4eC39HqLyjWDarjtT1zdp7dc'); const details = await stripe.issuing.cards.retrieveDetails('ic_1CoYuRKEl2ztzE5GIEDjQiUI');
    // Set your secret key. Remember to switch to your live secret key in production! // See your keys here: https://dashboard.stripe.com/account/apikeys stripe.Key = "sk_test_4eC39HqLyjWDarjtT1zdp7dc" details, err := card.Get("ic_1CoYuRKEl2ztzE5GIEDjQiUI", nil)
    // Set your secret key. Remember to switch to your live secret key in production! // See your keys here: https://dashboard.stripe.com/account/apikeys StripeConfiguration.ApiKey = "sk_test_4eC39HqLyjWDarjtT1zdp7dc"; var service = new CardService(); var details = service.Details("ic_1CoYuRKEl2ztzE5GIEDjQiUI")
    { "object": "issuing.card_details", "card": { "id": "ic_1Cm3paIyNTgGDVfzBqq1uqxR", "object": "issuing.card", "spending_controls": { "allowed_categories": null, "blocked_categories": null, "max_approvals": 1 },
    See all 46 lines "brand": "Visa", "cardholder": { "id": "ich_1Cm3pZIyNTgGDVfzI83rasFP", "object": "issuing.cardholder", "billing": { "address": { "city": "San Francisco", "country": "US", "line1": "1234 Main Street", "postal_code": "94111", "state": "CA" } }, "created": 1531159885, "email": "jenny.rosen@example.com", "livemode": false, "metadata": {}, "name": "Jenny Rosen", "phone_number": "+18008675309", "status": "active", "type": "individual" }, "created": 1531159886, "currency": "usd", "exp_month": 8, "exp_year": 2019, "last4": "4242", "livemode": false, "metadata": {}, "shipping": null, "status": "active", "type": "physical" }, "cvc": "123", "number": "4242424242424242" }

    PCI-DSS

    If you are generating virtual cards for your own use, you are not required to attain PCI-DSS compliance for Issuing activity. If you are generating virtual cards on behalf of your users, you may be considered a Service Provider under PCI-DSS rules. Service Providers must be PCI-DSS compliant.

    If you accept payments through Stripe, you can read more about your PCI-DSS obligations here. PCI-DSS obligations from payment acceptance, whether through Stripe or another Payment Processor, are in addition to any requirements for Issuing.

    Was this page helpful?

    Feedback about this page?

    Thank you for helping improve Stripe's documentation. If you need help or have any questions, please consider contacting support.

    On this page