Get Credit Card Icon for appwrite



    Khalid Khan

    Appwrite companion cookbook

    The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.

    When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.


    let result = sdk.avatars.getCreditCard('&[USER_INPUT:1:creditcard_provider');
    console.log(result); // Resource URL
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.