Skip to content

Commit

Permalink
Pass client into PledgeData
Browse files Browse the repository at this point in the history
We can specify what client is making a storage transaction now. Send
this data to donations-firebase so it can write a nice description.

PER-9930: Send better data to Stripe
  • Loading branch information
meisekimiu committed Dec 13, 2024
1 parent 83d5999 commit 7d01774
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/pledge/components/new-pledge/new-pledge.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export class NewPledgeComponent implements OnInit, AfterViewInit {
stripeToken: stripeResult.token.id,
zip: stripeResult.token.card?.address_zip,
timestamp: new Date().getTime(),
client: 'Web App',
};

try {
Expand Down Expand Up @@ -317,4 +318,5 @@ export interface PledgeData {
id?: string;
paid?: boolean;
stripeChargeId?: string;
client?: 'Web App';
}

0 comments on commit 7d01774

Please sign in to comment.