ISO4217 or Currency Details
<?php
$gateway = $container->get('payum')->getGatewayFactory('offline')->create();
$gateway->execute($currency = new \Payum\Core\GetCurrency('USD'));
echo $currency->getAlpha3(); // USD
echo $currency->getName(); // US Dollar
echo $currency->getExp(); // 2
echo $currency->getCountry(); // US
// and so on...<?php
class FooAction extends GatewayAwareAction
{
public function execute($request)
{
$this->gateway->execute($currency = new \Payum\Core\GetCurrency('USD'));
}
}Supporting Payum
Last updated