| 1 |
<?php |
| 2 |
namespace Payplug; |
| 3 |
|
| 4 |
/** |
| 5 |
* Getting Oney Payment Simulation from MArketing API |
| 6 |
**/ |
| 7 |
class OneySimulation { |
| 8 |
/** |
| 9 |
* Get Oney Payment Simulation |
| 10 |
* |
| 11 |
* @param $data |
| 12 |
* @param Payplug|null $payplug |
| 13 |
* @return array |
| 14 |
* @throws Exception\ConfigurationNotSetException |
| 15 |
* @throws Exception\ConnectionException |
| 16 |
* @throws Exception\HttpException |
| 17 |
* @throws Exception\UnexpectedAPIResponseException |
| 18 |
*/ |
| 19 |
public static function getSimulations($data, $payplug = null) |
| 20 |
{ |
| 21 |
return Resource\OneySimulationResource::getSimulations($data, $payplug); |
| 22 |
} |
| 23 |
} |
| 24 |
|