Download the PHP package sobirjonovs/payme-payment without Composer

On this page you can find all versions of the php package sobirjonovs/payme-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package payme-payment

\[Telegram\] tutorialsgroup \[Telegram\] sobirjonovs

Bu qanaqa dastur?

p2p to'lovlarni avtomatlashtirish uchun dastur. Dastur Payme apidan foydalanadi.

1. Dastur ishlashi uchun talablar

3. Payme'ga ulanish

Payme'ga ulanish uchun biz App\Payme\Api\Api sinfidan foydalanamiz. Ushbu sinf orqali barcha Payme bilan bog'liq amaliyotlarni bajarishimiz mumkin. Keling, birinchi Payme kabinetimizga ushbu sinf orqali kiramiz:

DIQQAT! Kabinetga faqat bir marta, "MUHIM" ma'lumotlarni olish uchun kiramiz. Undan so'ng kirish shart bo'lmaydi. Qaysi "MUHIM" ma'lumotlar nazarda tutilayotgani pastda keltirilgan. Diqqat bilan o'qing.

setCredentials([]) metodi orqali Payme akkauntimizning login parollarini belgilashimiz mumkin. Bu metodga massiv yuborish kerak. Massivda login va parol kalitlari bo'lishi shart. Login - bu sizning Paymedagi nomeringiz, nomer 901234564 formatda yozilishi kerak. Parol esa o'z holicha yoziladi. Ushbu ma'lumotlarni to'g'ri kiritganingizdan so'ng, sizga Paymedan telefon raqamingizga kod keladi. Ushbu kodni activate metodi orqali kiritasiz:

Telefoningizga Paymedan "Payme API qurilmasi ulandi" degan SMS kelsa, demak hammasi muvaffaqiyatli bo'lgan. Shundan so'ng, kerakli ma'lumotlarni saqlab olishga navbat keladi.

Muhim ma'lumotlar

  1. Device ID
  2. Card ID

Paymega API orqali kirilganda sessiya 15 daqiqa davom etadi va undan keyin API klyuch yangilanadi. Bu holatda yana qaytadan login qilmaslik uchun biz device id raqamini saqlab olishimiz kerak. Device id orqali aktiv sessiya klyuchni olishimiz mumkin (buni siz qilmaysiz, sessiya klyuchni dasturni o'zi topadi). Cheklarni olayotganda, kartalarni olayotganda birinchi credentials'ni va device idni kiritish zarur. Device id setDevice metodi orqali kiritiladi.

Shundan so'ng bemalol amaliyotlarni kuzatish mumkin.

Payme'dagi barcha tranzaksiyalarni ko'rish

Barcha tranzaksiyalarni ko'rish uchun getAllCheques yoki cheques metodlari ishlatiladi. Bu metodlar bir xil vazifa bajaradi faqat farqi getAllCheques chainable emas.

Tranzaksiyalar orasidan tegishli izohli to'lovni topish

Agar siz P2P to'lovni avtomatlashtirmoqchi bo'lsangiz, sizga bu juda asqatadi. Izohli to'lovni tekshirish uchun findByComment metodi ham qo'shiladi. Namuna:

Tranzaksiyalarni saralash

Tranzaksiyalarni saralash uchun getAllCheques yoki cheques metodlaridan biriga saralash parametrlaridan iborat massivni uzatishingiz kerak. Saralash parametrlari quyidagilardan iborat:

  1. from Bu parametr 3 ta elementli massiv qabul qiladi. Elementlari day, month, year lar hisoblanadi. month ga qiymat berganda berilgan oydan -1 ayirish kerak. Ya'ni, 7-oydagi ma'lumotni topish uchun 6-oy deb yozishingiz kerak (g'alati, paymeda shunaqa ekan).
    1. count Bu parametr integer qabul qiladi. Buning vazifasi nechta tranzaksiyani olib berishni hal qilish.
    2. card Bu parametr karta raqamning ID sini qabul qiladi. Buning vazifasi ko'rsatilgan karta raqamdagi tranzaksiyalarni olib berish.
    3. to Bu parametr ham from bilan bir xil. Faqat bu ko'rsatilgan sanagacha bo'lgan tranzaksiyalarni olib berishni hal qiladi.
    4. group Defolt qiymati time
    5. offset Defolt qiymati 0

Namunalar

API dan foydalanish namunalar index.php faylida ham yozilgan.

Eslatma!

Dastur va dastur uchun qo'llanma Sanjarbek Sobirjonov (telegram @sobirjonovs) tomonidan yozildi. Agar dasturda yoki qo'llanmada qandaydir xatolik topsangiz, pull request yoki murojaat qilishingizdan mamnun bo'lamiz.


All versions of payme-payment with dependencies

PHP Build Version
Package Version
Requires ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sobirjonovs/payme-payment contains the following files

Loading the files please wait ....