Skip to content

Guarantee payment is linked to payment intent when receiving webhooks#236

Merged
waiting-for-dev merged 1 commit into
masterfrom
waiting-for-dev/two_steps_confirm
Mar 21, 2023
Merged

Guarantee payment is linked to payment intent when receiving webhooks#236
waiting-for-dev merged 1 commit into
masterfrom
waiting-for-dev/two_steps_confirm

Conversation

@waiting-for-dev

Copy link
Copy Markdown
Contributor

Summary

We create and confirm the Stripe payment intent in two steps. That's to
guarantee that we associate a Solidus payment on the creation, and we
can fetch it after webhook events are published on confirmation.

Closes #231

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

We create and confirm the Stripe payment intent in two steps. That's to
guarantee that we associate a Solidus payment on the creation, and we
can fetch it after webhook events are published on confirmation.

Closes #231
@codecov

codecov Bot commented Mar 21, 2023

Copy link
Copy Markdown

Codecov Report

Merging #236 (f827aec) into master (7201766) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #236      +/-   ##
==========================================
+ Coverage   96.37%   96.39%   +0.02%     
==========================================
  Files          23       23              
  Lines         441      444       +3     
==========================================
+ Hits          425      428       +3     
  Misses         16       16              
Impacted Files Coverage Δ
app/models/solidus_stripe/gateway.rb 96.49% <100.00%> (+0.19%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@kennyadsl kennyadsl left a comment

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.

👍 sounds good.

@waiting-for-dev waiting-for-dev merged commit 222b220 into master Mar 21, 2023
@waiting-for-dev waiting-for-dev deleted the waiting-for-dev/two_steps_confirm branch March 21, 2023 14:19
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.

Create authorized Stripe payment intents in two steps

2 participants