Closed jar-stripe closed 1 month ago
@jar-stripe Can you look at the test failures please?
@jar-stripe Can you look at the test failures please?
@ramya-stripe Tests pass, and I updated the title and PR description to better represent the scope of the PR. If you agree with my reasoning above re: using rawrequest.Client in both examples, this should be good to go!
Note: We will need to do a release of the Go SDK for the example to be usable
Why?
Stripe SDK for go does not have directly support V2 APIs but it is still possible to access them for e.g. Usage Based Billing. This PR contains examples that show how to use the rawrequest functionality to handle the new events and endpoints. Because the high-throughput meter event stream requires changing both the backend and the API key, this PR also introduces a raw_request.Client struct that behaves like other services.
What
stripe
, to enable posting meter events