This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
composer require deyjandi/laravel-viva-wallet
php artisan vendor:publish --tag="viva-wallet-config"
VIVA_WALLET_MERCHANT_ID=<your-merchant-id>
VIVA_WALLET_API_KEY=<your-api-id>
VIVA_WALLET_CLIENT_ID=<your-smart-checkout-client-id>
VIVA_WALLET_CLIENT_SECRET=<your-smart-checkout-secret>
You can refer to the ./config/viva-wallet-config.php
for additional configuration options
...
use Deyjandi\VivaWallet\Facades\VivaWallet;
use Deyjandi\VivaWallet\Payment;
...
$payment = new Payment($amount = 1000);
$checkoutUrl = VivaWallet::createPaymentOrder($payment);
...
...
use Deyjandi\VivaWallet\Enums\RequestLang;
use Deyjandi\VivaWallet\Enums\PaymentMethod;
use Deyjandi\VivaWallet\Facades\VivaWallet;
use Deyjandi\VivaWallet\Customer;
use Deyjandi\VivaWallet\Payment;
...
$customer = new Customer(
$email = 'example@test.com',
$fullName = 'John Doe',
$phone = '+306987654321',
$countryCode = 'GR',
$requestLang = RequestLang::Greek,
);
$payment = new Payment();
$payment
->setAmount(2500)
->setCustomerTrns('short description of the items/services being purchased')
->setCustomer($customer)
->setPaymentTimeout(3600)
->setPreauth(false)
->setAllowRecurring(true)
->setMaxInstallments(3)
->setPaymentNotification(true)
->setTipAmount(250)
->setDisableExactAmount(false)
->setDisableCash(true)
->setDisableWallet(false)
->setSourceCode(1234)
->setMerchantTrns('customer order reference number')
->setTags(['tag-1', 'tag-2'])
->setBrandColor('009688')
->setPreselectedPaymentMethod(PaymentMethod::PayPal);
$checkoutUrl = VivaWallet::createPaymentOrder($payment);
...
...
use Deyjandi\VivaWallet\Facades\VivaWallet;
...
$transaction = VivaWallet::retrieveTransaction($transactionId);
php artisan viva-wallet:webhook-key
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.