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

Being able to customize the Stripe::PaymentIntent creation parameters #173

Closed
loicginoux opened this issue Feb 16, 2023 · 2 comments
Closed
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@loicginoux
Copy link
Contributor

Desired Behavior

Currently payment intent is created with basic options (see code)
It would be good to support a way to customize it easily. There are a lot more options in Stripe doc for intent creation and people will want to use them at some point.
I Imagine, at least to have the Hash parameter extracted in a controller method (easily overwritten) or in a separate service like the example from this PR

@elia
Copy link
Member

elia commented Apr 27, 2023

@loicginoux #prepare_for_payment will create a payment intent if missing and accepts a hash that will be forwarded to the payment intent creation, would that be enough for you?

SolidusStripe::PaymentIntent.prepare_for_payment(payment).stripe_intent %>

@elia elia modified the milestones: v5, v5.1 Apr 27, 2023
@loicginoux
Copy link
Contributor Author

Yes I saw that, that resolves my issue ! Closing it. Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants