Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbark authored May 21, 2024
2 parents 4374526 + 9343e71 commit 0a0bcca
Show file tree
Hide file tree
Showing 31 changed files with 151 additions and 121 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.freezed.dart linguist-generated=true
*.g.dart linguist-generated=true
2 changes: 2 additions & 0 deletions example/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@babel/cli": "^7.12.1",
"@babel/core": "^7.9.6",
"@babel/runtime": "^7.9.6",
"@types/body-parser": "^1.19.5",
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.2",
"@types/jest": "^26.0.14",
Expand All @@ -52,6 +53,7 @@
},
"dependencies": {
"@types/cors": "^2.8.12",
"body-parser": "^1.20.2",
"eslint-plugin-jest": "^24.1.0",
"jest": "^26.5.3",
"ts-jest": "^26.4.1"
Expand Down
3 changes: 3 additions & 0 deletions example/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env.config({ path: './.env' });

import bodyParser from 'body-parser';
import express from 'express';
import cors from 'cors';

import Stripe from 'stripe';
import { generateResponse } from './utils';
Expand All @@ -16,6 +17,8 @@ const stripeWebhookSecret = process.env.STRIPE_WEBHOOK_SECRET || '';

const app = express();

app.use(cors());

app.use(
(
req: express.Request,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:stripe_js/stripe_api.dart';

import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:stripe_js/stripe_api.dart';

part 'payment_intent.freezed.dart';
part 'payment_intent.g.dart';
Expand All @@ -26,6 +25,12 @@ enum PaymentIntentCaptureMethod {
/// customer authorizes the payment.
automatic,

/// Asynchronously capture funds when the customer authorizes the payment.
/// Note: Recommended over [automatic] due to improved latency, but may require additional integration changes.
/// Seealso: https://stripe.com/docs/payments/payment-intents/asynchronous-capture-automatic-async
@JsonValue('automatic_async')
automaticAsync,

/// Place a hold on the funds when the customer authorizes the payment,
/// but don’t capture the funds until later.
/// (Not all payment methods support this.)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0a0bcca

Please sign in to comment.