PHP code example of pimcore / payment-provider-payu
1. Go to this page and download the library: Download pimcore/payment-provider-payu library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pimcore / payment-provider-payu example snippets
$config = [
'extOrderId' => $paymentId,
'notifyUrl' => $baseUrl . $this->router->generate('payment_payu_status'),
'customerIp' => $clientIp,
'description' => 'My order',
'continueUrl' => $baseUrl . $this->router->generate('payment_payu_continue'),
'order' => $order
];
$payment->initPayment($price, $config);
bash
php bin/console pimcore:bundle:enable PimcorePaymentProviderPayUBundle
php bin/console pimcore:bundle:install PimcorePaymentProviderPayUBundle