github stripe/stripe-go v82.5.1

7 hours ago
  • #2119 Add prevented to the dispute.status enum.
    • It's supported in the 2025-08-27.basil of the API, but was mistakenly excluded from this SDK. That issue is now resolved.
  • #2117 Add LastResponse to resources returned in List and Search APIs
    Add a LastResponse to each resource returned from either a List or Search API call using stripe.Client. The RawJSON is the JSON corresponding to just that item. This is useful for accessing fields not exposed in the SDK.
for cust, err := range sc.V1Customers.List(context.TODO(), &stripe.CustomerListParams{}) {
    if err != nil {
        return err
    }
    customerJSON := cust.LastResponse.RawJSON
    log.Printf("Customer JSON: %s", customerJSON) // {"id":"cus_123",...}
}

See the changelog for more details.

Don't miss a new stripe-go release

NewReleases is sending notifications on new releases.