PHP code example of professionalweb / payment-laravel
1. Go to this page and download the library: Download professionalweb/payment-laravel 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/ */
professionalweb / payment-laravel example snippets
public function action(PayService $paymentService) {
redirect()->to(
$paymentService->getPaymentLink($order->id,
$payment->id,
$payment->amount,
$payment->currency,
PayService::PAYMENT_TYPE_CARD
$successfulPaymentReturnUrl,
$failedPaymentReturnUrl,
$description
);
);
}