Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Giftable donations #470

Merged
merged 28 commits into from
Dec 3, 2024
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e80151a
feat: enhance project details types with classification & purpose var…
mohitb35 Nov 12, 2024
330aeda
feat: refactor project details handling with createProjectDetails uti…
mohitb35 Nov 12, 2024
4827176
feat: update GiftForm display logic
mohitb35 Nov 12, 2024
e508a6f
feat: removes unneeded GiftForm fields for membership projects
mohitb35 Nov 12, 2024
56a6baa
feat: refine DonationsForm gift handling while paying through planet …
mohitb35 Nov 12, 2024
562fa92
feat: prevent initialization of direct gift for membership projects
mohitb35 Nov 12, 2024
66552ec
feat: rename projectDetails `classification` to `category`
mohitb35 Nov 13, 2024
09ccd93
feat: prevent GiftForm display for planet-cash donations
mohitb35 Nov 13, 2024
10fbef4
fix: remove unneeded `onBehalf` while creating prepaid donation
mohitb35 Nov 13, 2024
fa0c770
feat: prevent gifts to non giftable project purposes
mohitb35 Nov 13, 2024
9ca3909
feat: update gift message to clarify dedication to recipient
mohitb35 Nov 13, 2024
92d62ab
chore: update @planet-sdk/common to version 0.1.42
mohitb35 Nov 13, 2024
62b38ac
feat: remove support link from query params when not applicable
mohitb35 Nov 14, 2024
416b7a4
feat: update gift types and usage to resolve TS warnings
mohitb35 Nov 14, 2024
ed270b3
feat: ensure donation amounts are treated as numbers for consistency
mohitb35 Nov 14, 2024
dd2b8e3
fix: standardize casing for setIsGift
mohitb35 Nov 14, 2024
e84df9b
revert: rename projectDetails `category` to `classification` for cons…
mohitb35 Nov 18, 2024
448c65d
refactor: remove conditional onBehalf donor assignment in DonationsForm
mohitb35 Nov 18, 2024
fb98cd9
fix: minor code cleanup and fixes
mohitb35 Nov 18, 2024
bc4af28
fix: fixes visible currency selector for non tree donations while dis…
mohitb35 Nov 21, 2024
83e1544
fix: resolves intermittent layout issue with MaterialTextField
mohitb35 Nov 22, 2024
c379166
fix: add validation for recipient name length in GiftForm
mohitb35 Nov 26, 2024
2890661
feat: update logic to show PlanetCashSelector
mohitb35 Nov 26, 2024
071785c
refactor: remove unused _onBehalfDonor assignment in DonationsForm
mohitb35 Nov 28, 2024
2839bc1
feat: add check for PlanetCash gateway while permitting planet cash d…
mohitb35 Dec 3, 2024
2eced0a
feat: add authentication to loadPaymentSetup
mohitb35 Dec 3, 2024
b7cb75c
Merge pull request #471 from Plant-for-the-Planet-org/feature/expand-…
mariahosfeld Dec 3, 2024
8546ebb
Merge pull request #472 from Plant-for-the-Planet-org/feature/restric…
mariahosfeld Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: remove unused _onBehalfDonor assignment in DonationsForm
mohitb35 committed Nov 28, 2024
commit 071785c0a28087e6b6e2c23cd3e432b4b8c67d11
5 changes: 0 additions & 5 deletions src/Donations/Components/DonationsForm.tsx
Original file line number Diff line number Diff line change
@@ -293,11 +293,6 @@ function DonationsForm(): ReactElement {
const handlePlanetCashDonate = async () => {
if (projectDetails) {
setShowDisablePlanetCashButton(true);
const _onBehalfDonor = {
firstname: onBehalfDonor.firstName,
lastname: onBehalfDonor.lastName,
email: onBehalfDonor.email,
};

const _metadata = {
utm_campaign: utmCampaign,