Add card art
- Prepare your artwork using the requirements below. Most delays come from artwork that misses them.
- Send it to your Dakota contact, with the details listed below.
- Wait for review. This usually takes 5 to 10 business days. If a reviewer asks for a change, your contact tells you what to fix.
- Find its ID. Once approved, the art appears in
GET /card_artand on the Card art tab of the Cards page in your dashboard, and your contact lets you know.
Artwork requirements
The Visa Digital Card Brand Standards have the full rules.
What to send
- The artwork. Visa reviews wallet art and in-app art separately. You can use one image for both, or send one of each and say which is which.
- The products it’s for: business cards, consumer cards, or both.
- Your app icon: 100 x 100 pixels, PNG.
- A short and a long description of the card.
- Links to your privacy policy and your terms.
- Your support details: a customer service phone number (required), a support email, a website, and a fraud phone number if it’s different.
Find your card art
The
cardholder_base filter is optional, and the list is paginated like other lists. Retired card art stays in the list so a card that uses it can still be read, so check status before you offer a design for a new card. To read one design, use GET /card_art/{card_art_id}. An ID that is unknown, or that belongs to another client, returns 404. IDs differ between sandbox and production.
Issue a card with it
Addcard_art_id when you create a card:
card_art_id is null on the card.
Change a card’s art
card_art_id out, or sending null, keeps the card’s current art. Once a card has art, you can move it to other art but can’t remove it. The same refusals apply, except card-art-changed, and a closed card refuses with 403 card-closed. The new art is shown the next time the card is added to a wallet, and wallets the card is already in are updated too. You receive card.updated with a new version.
Show it in your app
Card art mainly controls what Apple Pay and Google Pay show. You don’t have to use it in your own app. If you want to, the card response includes what you need:card_art is null on a card with no art of its own. The art never contains a card number, a name, or an expiry date, so your app adds those.
There are three ways to show a card’s art in your app. Pick the one that fits your design.
Whichever way you choose, draw the masked number in
text_color and add the labels yourself. Talk to your Dakota contact before you draw your own card face with the Visa Brand Mark, because it has to meet Visa’s brand standards and may need its own review.
The image host
Dakota’s images are served from these hosts. If your page sets a Content-Security-Policy, allow the host inimg-src.
Images are cached for up to a day. Every image has its own
image_url, so when you change a card’s art, the card’s new image_url shows the new image straight away.
With Cards.js
Passcard_art from the card response as the art option. Cards.js draws the image, shows background_color while it loads, and sets the text color on the face and inside the revealed value frames:
art option accepts an image from any https host, so it works with Dakota’s image_url and with your own hosted image. Pass your own image like this:
- Validation is all-or-nothing. If any field isn’t accepted, Cards.js ignores the whole value and keeps the default face.
- Server rendering shows the default face first. The art appears when the page hydrates.
- Use a
keyfor each card when one component shows several cards. - Plain JS paints the
.dk-cardelement that contains the first mount target. - Your
theme.colorwins over the art’stext_color, which is otherwise the default.
art out and style the card yourself, as described in Theming.
Test in sandbox
Your Dakota contact can add test art to your sandbox account before Visa has approved it, so you can build againstcard_art_id and image_url early. Sandbox IDs don’t work in production. Sandbox can’t show how art looks in a real wallet.
