Skip to content

Commit

Permalink
Merge pull request #5 from realexpayments-developers/master
Browse files Browse the repository at this point in the history
Added HPP Card Management and iFrame Optimisation
  • Loading branch information
RealexITSO authored Jan 24, 2017
2 parents 0ad95e1 + 2d71b97 commit e287f0a
Show file tree
Hide file tree
Showing 20 changed files with 1,092 additions and 39 deletions.
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@

vendor/*
vm-config/*
.vagrant/
Vagrantfile
composer.lock
composer.phar
phpunit.phar
Would skip repository vendor/apache/log4php
vendor/autoload.php
vendor/composer
vendor/doctrine
vendor/symfony
vm-config/
adhoc/
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can sign up for a free Realex Payments sandbox account at https://www.realex
```
{
"require": {
"realexpayments/rxp-hpp-php": "1.0.0"
"realexpayments/rxp-hpp-php": "1.1.0"
}
}
```
Expand Down Expand Up @@ -82,7 +82,22 @@ use com\realexpayments\hpp\sdk\RealexHpp;
$realexHpp = new RealexHpp( "mySecret" );
$hppResponse = $realexHpp->responseFromJson( responseJson );
```

### HPP Select Stored Card
```php
$hppRequest = new HppRequest();
$hppRequest
->addAmount("1001")
->addCurrency("EUR")
->addAccount("accountId")
->addMerchantId("merchantId")
->addAutoSettleFlag("1")
->addHppSelectStoredCard("payerRef")
->addPayerExists("1")
->addOfferSaveCard("1");

$realexHpp = new RealexHpp("secret");
$requestJson = $realexHpp->requestToJson($hppRequest);
```
## License

See the LICENSE file.
See the LICENSE file.
Loading

0 comments on commit e287f0a

Please sign in to comment.