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

Add raw_request #2185

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Add raw_request #2185

merged 1 commit into from
Sep 25, 2024

Conversation

prathmesh-stripe
Copy link
Contributor

@prathmesh-stripe prathmesh-stripe commented Sep 25, 2024

Changelog

Adds the ability to make raw requests to the Stripe API, by providing an HTTP method and url.

Example:

import Stripe from 'stripe';
const stripe = new Stripe('sk_test_...');

const response = await stripe.rawRequest(
  'POST',
  '/v1/beta_endpoint',
  { param: 123 },
  { apiVersion: '2022-11-15; feature_beta=v3' }
);

@prathmesh-stripe prathmesh-stripe requested a review from a team as a code owner September 25, 2024 06:25
@prathmesh-stripe prathmesh-stripe requested review from helenye-stripe and removed request for a team September 25, 2024 06:25
@prathmesh-stripe prathmesh-stripe merged commit 6d3cef2 into master Sep 25, 2024
9 checks passed
@prathmesh-stripe prathmesh-stripe deleted the prathmesh/raw-request branch September 25, 2024 14:15
@prathmesh-stripe prathmesh-stripe restored the prathmesh/raw-request branch September 25, 2024 19:46
prathmesh-stripe added a commit that referenced this pull request Sep 25, 2024
prathmesh-stripe added a commit that referenced this pull request Sep 25, 2024
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.

2 participants