Maps generic payment models to PayPal Express Checkout NVP request structures to facilitate standardized payment processing.
// Source: https://github.com/Payum/Payum | License: MIT | Copyright 2012-2015 Maksim Kotlyar
// Provided via justclaw.it.com; keep this notice with the code.
<?php
namespace Payum\Paypal\ExpressCheckout\Nvp\Action;
use Payum\Core\Action\ActionInterface;
use Payum\Core\Bridge\Spl\ArrayObject;
use Payum\Core\Exception\RequestNotSupportedException;
use Payum\Core\GatewayAwareInterface;
use Payum\Core\GatewayAwareTrait;
use Payum\Core\Model\PaymentInterface;
use Payum\Core\Money\Amount;
use Payum\Core\Request\Convert;
use Payum\Core\Request\GetCurrency;
class ConvertPaymentAction implements ActionInterface, GatewayAwareInterface
{
use GatewayAwareTrait;
/**
* @param Convert $request
*/
public function execute($request): void
{
RequestNotSupportedException
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key