# payplug/3.1.0/vendor/payplug/payplug-php/lib/Payplug/OneySimulation.php

PayPlug for WooCommerce (Official), version 3.1.0. 24 lines.

- Page: https://pluginprobe.com/plugins/payplug/3.1.0/code/vendor/payplug/payplug-php/lib/Payplug/OneySimulation.php
- Raw: https://pluginprobe.com/plugins/payplug/3.1.0/raw/vendor/payplug/payplug-php/lib/Payplug/OneySimulation.php
- Modified: 2026-09-25T08:27:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/payplug/3.1.0/code/vendor/payplug/payplug-php/lib/Payplug/OneySimulation.php#L10-L20`.

```php
<?php
namespace Payplug;

/**
 * Getting Oney Payment Simulation from MArketing API
 **/
class OneySimulation {
    /**
     * Get Oney Payment Simulation
     *
     * @param $data
     * @param Payplug|null $payplug
     * @return array
     * @throws Exception\ConfigurationNotSetException
     * @throws Exception\ConnectionException
     * @throws Exception\HttpException
     * @throws Exception\UnexpectedAPIResponseException
     */
    public static function getSimulations($data, $payplug = null)
    {
        return Resource\OneySimulationResource::getSimulations($data, $payplug);
    }
}

```
