Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Aug 17, 2023
1 parent 5dcad77 commit f884e6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion testProjects/cloudflare-pages/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export async function onRequestPost({env, request}) {
const body = await request.text();

const stripe = new Stripe(env.STRIPE_API_KEY, {
apiVersion: '2022-11-15',
apiVersion: '2023-08-16',
httpClient: Stripe.createFetchHttpClient(),
});
const webCrypto = Stripe.createSubtleCryptoProvider();
Expand Down
4 changes: 2 additions & 2 deletions testProjects/mjs-ts/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import DefaultStripe, {Stripe} from 'stripe';

const stripe = new Stripe(process.argv[2], {
apiVersion: '2022-11-15',
apiVersion: '2023-08-16',
host: process.env.STRIPE_MOCK_HOST || 'localhost',
port: process.env.STRIPE_MOCK_PORT || 12111,
protocol: 'http',
});
const defaultStripe = new DefaultStripe(process.argv[2], {
apiVersion: '2022-11-15',
apiVersion: '2023-08-16',
host: process.env.STRIPE_MOCK_HOST || 'localhost',
port: process.env.STRIPE_MOCK_PORT || 12111,
protocol: 'http',
Expand Down

0 comments on commit f884e6e

Please sign in to comment.