Skip to content

Commit cbada80

Browse files
authored
Merge pull request #23 from happenslol/fix-parse-transaction-return-type
fix: Fix switched return types for notification parsing methods
2 parents 16a3235 + d4db0a5 commit cbada80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

store.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ func (c *StoreClient) ParseNotificationV2Payload(signedPayload string) (*Notific
430430

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

442442
// ParseNotificationV2 parses the signedRenewalInfo from decoded notification data
443443
// (https://developer.apple.com/documentation/appstoreservernotifications/data)
444-
func (c *StoreClient) ParseNotificationV2RenewalInfo(signedRenewalInfo string) (*JWSTransaction, error) {
445-
var result JWSTransaction
444+
func (c *StoreClient) ParseNotificationV2RenewalInfo(signedRenewalInfo string) (*JWSRenewalInfoDecodedPayload, error) {
445+
var result JWSRenewalInfoDecodedPayload
446446
if err := c.ParseSignedPayload(signedRenewalInfo, &result); err != nil {
447447
return nil, err
448448
}

0 commit comments

Comments
 (0)