Confirm order step

Paypal official documentation suggest you to show a confirm order page, once user is back from Paypal. By default Payum skip this step, at Paypal site you will see "Pay Now" button. If you want to use confirm step you have to reset AUTHORIZE_TOKEN_USERACTION. Set it to empty string

// prepare.php


That's it. Payum will render a page with a confirm button. The page is pretty simple and you most likely want to customize it. You can tell the gateway to use your own template by providing it in the gateway config.

// config.php

use Payum\Core\PayumBuilder;
use Payum\Core\Payum;

/** @var Payum $payum */
$payum = (new PayumBuilder())
    ->addGateway('gatewayName', [
        'factory' => 'paypal_express_checkout',
        'payum.template.confirm_order' => '@Acme/confirm_paypal_order.html.twig',


Supporting Payum

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:

Last updated