Skip to content

Commit

Permalink
Merge pull request #11 from Doncode/master
Browse files Browse the repository at this point in the history
Pass test "Cancel command: Testing response to incorrect paymend ID"
  • Loading branch information
zakharovvi committed Jul 16, 2015
2 parents 6bfadc9 + 573ea23 commit bf09e1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example/ipn_standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
use Xsolla\SDK\Protocol\Storage\UserStorageInterface;
use Xsolla\SDK\Protocol\Storage\PaymentStandardStorageInterface;
use Xsolla\SDK\Exception\UnprocessableRequestException;
use Xsolla\SDK\Exception\InvoiceNotFoundException;

class PaymentStandardDemoStorage implements PaymentStandardStorageInterface
{
public function cancel($xsollaPaymentId, $reasonCode = NULL, $reasonDescription = NULL)
{
//do nothing
if($xsollaPaymentId < 1){
throw new InvoiceNotFoundException();
}
}

public function pay($xsollaPaymentId, $virtualCurrencyAmount, User $user, \DateTime $date, $dryRun)
Expand Down

0 comments on commit bf09e1d

Please sign in to comment.