SYNOPSIS
use Test::More;
use Web::MarketReceipt::Verifier::Mock::AppStore;
my $shop = MyGame::Shop->new(
appstore_verifier => Web::MarketReceipt::Verifier::Mock::AppStore->new,
);
# MyApp::Game#purchase_by_appstore grant to user by receipt from AppStore.
my $result = $shop->purchase_by_appstore(receipt => $receipt_text);
is $result->received_items, $expected;
DESCRIPTION
Web::MarketReceipt::Verifier::Mock::AppStore is mock like Web::MarketReceipt::Verifier::AppStore.
This module without to send request to Apple's validation server.
LICENSE
Copyright (C) KAYAC Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
macopy <macopy123@gmail.com>