Skip to content

Commit 51d1f65

Browse files
authored
[stripe] Actually call the billing service 🤦 (#17175)
1 parent 909c3ff commit 51d1f65

File tree

1 file changed

+8
-3
lines changed
  • components/public-api-server/pkg/billingservice

1 file changed

+8
-3
lines changed

components/public-api-server/pkg/billingservice/client.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"context"
99
"fmt"
1010

11-
"github.com/gitpod-io/gitpod/common-go/log"
1211
v1 "github.com/gitpod-io/gitpod/usage-api/v1"
1312
"google.golang.org/grpc"
1413
"google.golang.org/grpc/credentials/insecure"
@@ -54,6 +53,12 @@ func (c *Client) CancelSubscription(ctx context.Context, subscriptionId string)
5453
}
5554

5655
func (c *Client) OnChargeDispute(ctx context.Context, disputeID string) error {
57-
log.Infof("Handling stripe charge dispute ID: %s", disputeID)
58-
return fmt.Errorf("unimplemented")
56+
_, err := c.b.OnChargeDispute(ctx, &v1.OnChargeDisputeRequest{
57+
DisputeId: disputeID,
58+
})
59+
if err != nil {
60+
return fmt.Errorf("failed RPC to billing service: %s", err)
61+
}
62+
63+
return nil
5964
}

0 commit comments

Comments
 (0)