Skip to content

Commit

Permalink
Merge pull request #23 from happenslol/fix-parse-transaction-return-type
Browse files Browse the repository at this point in the history
fix: Fix switched return types for notification parsing methods
  • Loading branch information
richzw authored Nov 15, 2024
2 parents 16a3235 + d4db0a5 commit cbada80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions store.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ func (c *StoreClient) ParseNotificationV2Payload(signedPayload string) (*Notific

// ParseNotificationV2 parses the signedTransactionInfo from decoded notification data
// (https://developer.apple.com/documentation/appstoreservernotifications/data)
func (c *StoreClient) ParseNotificationV2TransactionInfo(signedTransactionInfo string) (*JWSRenewalInfoDecodedPayload, error) {
var result JWSRenewalInfoDecodedPayload
func (c *StoreClient) ParseNotificationV2TransactionInfo(signedTransactionInfo string) (*JWSTransaction, error) {
var result JWSTransaction
if err := c.ParseSignedPayload(signedTransactionInfo, &result); err != nil {
return nil, err
}
Expand All @@ -441,8 +441,8 @@ func (c *StoreClient) ParseNotificationV2TransactionInfo(signedTransactionInfo s

// ParseNotificationV2 parses the signedRenewalInfo from decoded notification data
// (https://developer.apple.com/documentation/appstoreservernotifications/data)
func (c *StoreClient) ParseNotificationV2RenewalInfo(signedRenewalInfo string) (*JWSTransaction, error) {
var result JWSTransaction
func (c *StoreClient) ParseNotificationV2RenewalInfo(signedRenewalInfo string) (*JWSRenewalInfoDecodedPayload, error) {
var result JWSRenewalInfoDecodedPayload
if err := c.ParseSignedPayload(signedRenewalInfo, &result); err != nil {
return nil, err
}
Expand Down

0 comments on commit cbada80

Please sign in to comment.