Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Avatars → Get Credit Card Icon
AI-generatedOverview
This node interacts with the Appwrite API to retrieve credit card icons based on the specified card type. It is useful for applications that need to display credit card provider logos dynamically, such as payment processing systems, e-commerce platforms, or financial dashboards. For example, it can fetch the Visa or Mastercard logo image to visually represent the accepted payment methods.
Use Case Examples
- An e-commerce site displaying the credit card icons accepted for payment.
- A financial app showing the user's saved credit card types with their respective logos.
Properties
| Name | Meaning |
|---|---|
| Card Type | Specifies the credit card provider code to fetch the corresponding icon image. |
| Width | Specifies the width of the returned image in pixels, ranging from 0 to 2000. Use 0 to keep the original width. |
| Height | Specifies the height of the returned image in pixels, ranging from 0 to 2000. Use 0 to keep the original height. |
| Quality | Specifies the image quality from 0 to 100, where higher values produce better quality images. |
Output
JSON
iconUrl- URL of the credit card icon image returned by the Appwrite API.
Dependencies
- Appwrite API key credential required for authentication.
Troubleshooting
- Common issues include invalid or missing API credentials, resulting in authentication errors.
- Providing an unsupported card type code may cause the node to fail or return an error.
- Setting width or height outside the allowed range (0-2000) may cause unexpected behavior or errors.
Links
- Appwrite Avatars API Documentation - Official documentation for the Avatars service in Appwrite, including credit card icons.