kosmailer / monobank
PHP SDK for Monobank API
Installs: 1 016
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.4
- ext-curl: *
- ext-json: *
This package is auto-updated.
Last update: 2025-04-29 01:21:52 UTC
README
You should init client object with 3 parameters: api key, base api url, store id
Allowed methods
-
validateClientByPhone()
- Input:
String $phone (pay your attention, you may use full number like +380931231212)
- Output:
[success, (error | clientExist, clientData)]
- Input:
-
initOrderPayment()
- Input:
[String store_order_id; String client_phone, Array invoice, Array available_programs, Array products, numeric total_sum, ?String result_callback]
- Output:
[success, (error | orderId)]
- Input:
-
checkOrderStatus()
- Input:
String $orderId (order identifier on monobank side, witch you get while you initialize order payment ( **method initOrderPayment()** ))
- Output:
[success, (error | success, orderId, state, subState) ]
- Input:
-
checkPaymentByOrder()
- Input:
String $orderId (order identifier on monobank side, witch you get while you initialize order payment ( **method initOrderPayment()** ))
- Output:
[success, (error | possibleReturnToCard, fullSumPayed )]
- Input:
-
confirmOrderProcessing()
- Input:
String $orderId (order identifier on monobank side, witch you get while you initialize order payment ( **method initOrderPayment()** ))
- Output:
[success, (error | success, orderId, state, subState)]
- Input:
-
rejectOrderProcessing()
- Input:
String $orderId (order identifier on monobank side, witch you get while you initialize order payment ( **method initOrderPayment()** ))
- Output:
[success, (error | success, orderId, state, subState)]
- Input:
-
rejectOrder()
- Input:
[String order_id; bool return_money_to_card, String store_return_id, numeric sum]
- Output:
[success, (- | error)]
- Input: