<?phpusePayum\Core\Model\Payment;usePayum\Core\GatewayInterface;usePayum\Core\Request\Capture;$model =newPayment();$model->setCurrencyCode('USD');$model->setTotalAmount(1);/** @varGatewayInterface $gateway */$gateway->execute(newCapture($model));// or using raw format$model = ['amount'=>100,'currency'=>'USD',];$gateway->execute(newCapture($model);
Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider: