Added google androidpublisher/v3 api to verify google purchase tokens
This commit is contained in:
16
server/google/dummy.go
Normal file
16
server/google/dummy.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package google
|
||||
|
||||
import (
|
||||
"context"
|
||||
_ "embed"
|
||||
)
|
||||
|
||||
type DummyGoogleAPIClient struct{}
|
||||
|
||||
func NewDummy() AndroidPublisherClient {
|
||||
return &DummyGoogleAPIClient{}
|
||||
}
|
||||
|
||||
func (d DummyGoogleAPIClient) GetProductPurchase(ctx context.Context, packageName string, productId string, token string) (*ProductPurchase, error) {
|
||||
return nil, nil // = purchase not found
|
||||
}
|
||||
Reference in New Issue
Block a user