PHP code example of univicosa / laravel-payment-client
1. Go to this page and download the library: Download univicosa/laravel-payment-client 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/ */
univicosa / laravel-payment-client example snippets
'name' => 'The name that describes your beneficiary in the report list',
'system' => 'The id that the Payment server admin provides to you',
'account' => 'The bank account that Payment server admin provides to you',
'valid_until' => 'The final date your account will accepts payments requests'
'operator' => 'the financier operator of your transaction. EX: SICOOB, Cielo'
'descriptions' => 'add the descriptions to boleto's document body, max 4'
'value' => 'bail|
@method \Payment::createBeneficiary(Beneficiary $beneficiary): array
@api POST '/api/{version}/beneficiary'
@return array with the response of Post action
@method \Payment::send(\JsonSerializable $payment): array
@api POST '/api/{version}/{paymentType}'
@return array with the response of Post action
@method \Payment::getPayer(): array
@api GET '/api/{version}/user'
@return array with data of loged user
@method \Payment::cancel(string $type, string $id): array
@api DELETE '/api/{version}/{PaymentType}/{paymentId}'
@return array with the response of Delete action
@method \Payment::cancelItem(string $type, string $id, array $data, bool $cancel): array
@api DELETE '/api/{version}/{PaymentType}/item/{paymentId}'
@return array with the response of Delete action
php artisan vendor:publish --tag=payment
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.