Skip to content

Make an embeddable Donation Card #129

Description

@osdiab

We can use similar structure to the donate button to also create an embeddable donation card, which would take in a donation ID and create the same UI as the donation card on our main website, except using the shadow DOM in other website contexts. We can use the donation API to get all the requisite information:

https://www.every.org/api/donation/1?nonprofitSlug=givewell&username=omar

That already works with a simple GET request. We can also do it with donation IDs:

https://www.every.org/api/donation/7714ab02-66a0-440c-9121-ce8eba9d04b9

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions