Payum/PaypalExpressCheckoutNvp — pull request #28 by makasim (2013-11-19 10:25:11+00:00)
Title: [api] allow customize authorize token useraction and cmd.

This PR allows to modify authorize token query parameters: `useraction` and `cmd`. It supports both variants static and in runtime:

To set it globally pass values as api options:

```php
Api::USERACTION_COMMIT,
'cmd' => API::CMD_EXPRESS_CHECKOUT_MOBILE,
));

echo $api->getAuthorizeTokenUrl('aToken');
// https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout-mobile&token=aToken
```

or in runtime:

```php
getAuthorizeTokenUrl('aToken', array(
'useraction' => Api::USERACTION_COMMIT,
'cmd' => API::CMD_EXPRESS_CHECKOUT_MOBILE,
));
// https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout-mobile&token=aToken
```

Pay attention that second variant will overwrite values passed as options. You could also use second variant to pass any other parameters.