Skip to content

[v4] Return client secret on Payment Intent creation#13295

Draft
Mohamad-Mortada wants to merge 2 commits intomainfrom
v4-add-payment-intent-client-secret
Draft

[v4] Return client secret on Payment Intent creation#13295
Mohamad-Mortada wants to merge 2 commits intomainfrom
v4-add-payment-intent-client-secret

Conversation

@Mohamad-Mortada
Copy link
Copy Markdown
Member

Summary of the problem

Needed to process the payment intent on the mobile app

Describe your changes

returns client secret of that payment intent

@Mohamad-Mortada Mohamad-Mortada requested a review from a team March 27, 2026 05:56
Comment on lines 37 to 40
amount = params[:amount_cents]
donation_id = params[:donation_id]
if params[:fee_covered] && @event.config.cover_donation_fees
amount /= (1 - @event.revenue_fee).ceil
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of taking in these parameters here, we should pull them off the donation that was already created

@@ -35,6 +35,7 @@ def create

def payment_intent
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this a member route instead of collection

@Mohamad-Mortada Mohamad-Mortada marked this pull request as draft April 11, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants