Commit 3dc2fdc4 authored by Mo Firouz's avatar Mo Firouz
Browse files

Fix incorrect In-app purchase setup availability checks.

parent 176f5130
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@ All notable changes to this project are documented below.
The format is based on [keep a changelog](http://keepachangelog.com/) and this project uses [semantic versioning](http://semver.org/).

## [Unreleased]
### Fixed
- Fix incorrect In-app purchase setup availability checks.

## [1.4.0] - 2017-12-16
### Changed
+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ func (p *pipeline) convertApplePurchase(purchase *TPurchaseValidation_ApplePurch
}

func (p *pipeline) convertGooglePurchase(purchase *TPurchaseValidation_GooglePurchase) (*iap.GooglePurchase, error) {
	if p.purchaseService.AppleClient == nil {
	if p.purchaseService.GoogleClient == nil {
		return nil, errors.New("Google in-app purchase environment is not setup.")
	}