first commit

This commit is contained in:
Mohamed Youssef
2026-03-25 16:15:28 +02:00
parent 9f49ed54ec
commit 8138eb509d
15 changed files with 1045 additions and 0 deletions

34
config/upayments.php Normal file
View File

@@ -0,0 +1,34 @@
<?php
return [
/**
* If you have availed the UInterface API, you can find your API details (API Key or Bearer Token) from your UPay Dashboard
*
* UPay -> API -> API Details for UPay v2 (or)
* My Profile (Account) -> API Details for UPay v1
*/
'apikey' => env('UPAYMENTS_APIKEY', 'jtest123'),
/**
* Available modes we can use is:
* Sandbox => Testing environment,
* Production => live environment
*/
'mode' => [
'sandbox' => 'https://sandboxapi.upayments.com/api/v1/',
'production' => 'https://uapi.upayments.com/api/v1/',
],
/**
* Change this links to match your own website links which used for:
* return => used to redirect client after success payment to your website success page.
* cancel => used to redirect client after (failed or cancelled) payment to your website failure page.
*
* notification => used as a Webhooks (Web Callback) provides payment information to your application in real-time when
* (a payment is successful, a payment fails, error in payment).
*/
'url' => [
'return' => 'https://upayments.com/en/',
'cancel' => 'https://error.com',
'notification' => 'https://webhook.site/b381b892-ccf3-48f9-a415-625b29885611'
],
];