mbpictures / tessera

Open source and ready to use ticket shop with lots of customization abilities and feature rich admin dashboard. Several payment providers (stripe, paypal, sofort) are available out of the box and new ones can be added with ease.
MIT License
19 stars 2 forks source link

feature/idempotent-store-order #38

Closed mbpictures closed 2 years ago

mbpictures commented 2 years ago

This PR fixes several issues with the payment process and adds idempotent safety to store order and payment intent calls

codecov[bot] commented 2 years ago

Codecov Report

Merging #38 (93ac13c) into main (6887176) will decrease coverage by 0.48%. The diff coverage is 52.77%.

@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
- Coverage   72.85%   72.37%   -0.49%     
==========================================
  Files         136      137       +1     
  Lines        2266     2313      +47     
  Branches      456      470      +14     
==========================================
+ Hits         1651     1674      +23     
- Misses        434      448      +14     
- Partials      181      191      +10     
Impacted Files Coverage Δ
src/components/payment/Sofort.tsx 68.75% <0.00%> (ø)
src/components/payment/StripeCard.tsx 66.66% <0.00%> (ø)
src/components/payment/StripeIBAN.tsx 60.52% <0.00%> (-1.64%) :arrow_down:
...components/payment/stripe/StripeElementWrapper.tsx 88.88% <ø> (ø)
src/store/factories/payment/StripeIBANPayment.tsx 90.00% <ø> (ø)
src/components/payment/PayPal.tsx 35.00% <12.50%> (-2.15%) :arrow_down:
src/lib/send.ts 50.00% <40.00%> (-2.95%) :arrow_down:
src/components/Step.tsx 59.45% <50.00%> (ø)
src/pages/checkout.tsx 70.00% <50.00%> (-30.00%) :arrow_down:
src/pages/api/order/store.ts 48.00% <53.33%> (-8.25%) :arrow_down:
... and 8 more

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