Download the PHP package otnansirk/laravel-moota without Composer
On this page you can find all versions of the php package otnansirk/laravel-moota. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download otnansirk/laravel-moota
More information about otnansirk/laravel-moota
Files in otnansirk/laravel-moota
Package laravel-moota
Short Description Laravel Moota is a mutation grapher built using laravel with moota.id api
License MIT
Informations about the package laravel-moota
Laravel Moota
Laravel Moota is a mutation grapher built using laravel with moota.id api. This allows you to immediately focus on business flow without the hassle of making manual requests to the moota.id server.
Documentation
- Documentation
- Installation
- How to Use
- Auth
- Register User
- Login(Get Token)
- Logout(Destroy Token)
- Profile
- Bank Accounts
- Available Bank
- List Of Bank
- Create Bank
- Update Bank
- Delete Bank
- E-Wallet Request OTP
- E-Wallet Verify OTP
- Mutations
- Refresh mutation
- List mutation
- Store mutation
- Note mutation
- Delete mutation
- Tags mutation
- Summary mutation
- Webhook test
- Taggings
- Store
- Update
- Mootapay
- Contract
- Transaction List
- Payment Method
- Cancelled Transaction
- Plugin Token
- Moota Callback
- Topups
- Topup to
- Topup
- History
- Point
- Point used
- Redeem code
- Webhooks
- List
- Store
- Destroy
- Merchant
- List
- Store
- Store Legal
- Update
- Update Legal
- Contribution
Installation
1. You can install the package via composer.
2. Optional : The service provider will automatically get registered. Or you my manually add the service provider in your configs/app.php
file.
3. You should publish the config/moota.php
config file with this php artisan command.
How to Use
All config store to /configs/moota.php
. Customize evrything you need.
Auth
Register User
Register user
Method : MootaAuth::register($data)
Params :
- Required : $data
- Optional : -
Login(Get Token)
Generate access token
Method : MootaAuth::login($email, $password, $scopes)
Params :
- Required : $email, $password
- Optional : $scopes
- Default :
- $scopes = ["api"]
Scopes = api
for all access to api v2.
Logout(Destroy Token)
Destroy access token
Method : MootaAuth::logout()
- Required : -
- Optional : -
Profile
Get user profile
Method : MootaAuth::profile()
- Required : -
- Optional : -
Bank Accounts
Available Bank
Get list available of bank Integration
Method : MootaBank::available($page, $limit)
Params :
- Required : -
- Optional : $page, $limit
- Default :
- $page = 1
- $limit = 10
List Of Bank
Get list of your bank accounts that you have registered at moota.
Method : MootaBank::list($page, $limit)
Params :
- Required : -
- Optional : $page, $limit
- Default :
- $page = 1
- $limit = 10
Create Bank
Stor bank account
Method : MootaBank::store($data)
Params :
- Required : $data
- Optional : -
Update Bank
Update bank account
Method : MootaBank::update($data, $id)
Params :
- Required : $data, $id
- Optional : -
Delete Bank
Destroy bank account
Method : MootaBank::destroy($id)
Params :
- Required : $id
- Optional : -
E-Wallet Request OTP
This is for activating your Gojek and Ovo E-wallet accounts, after you make a call request this endpoint, there will be an OTP that you will receive via your mobile number, and make a call MootaBank::verifyOtp() after getting OTP Code
Method : MootaBank::requestOtp($id)
Params :
- Required : $id
- Optional : -
E-Wallet Verify OTP
This is for activating your Gojek and Ovo E-wallet accounts. after you get the OTP code, verify the code through this endpoint
Method : MootaBank::verifyOtp($otpCode, $id)
Params :
- Required : $otpCode, $id
- Optional : -
Mutations
Refresh mutation
This is for getting the latest updates before the bank interval runs.
Method : MootaMutation::refresh()
Params :
- Required : -
- Optional : -
List mutation
Get list of mutations
Method : MootaMutation::list($params)
Params :
- Required : -
- Optional : $params
Store mutation
Create dummy mutation
Method : MootaMutation::store($data, $bankId)
Params :
- Optional : -
- Required : $data, $bankId
Note mutation
Update note of mutation
Method : MootaMutation::note($nota, $mutationId)
Params :
- Required : $nota, $mutationId
- Optional : -
Delete mutation
Delete mutation can be multiple
Method : MootaMutation::destroy($mutationIds)
Params :
- Required : $mutationIds
- Optional : -
You can destroy multiple mutation like this
Tags mutation
Add tags to mutation
Method : MootaMutation::tags($tags, $mutationId)
Params :
- Required : $tags, $mutationId
- Optional : -
You can add tags multiple to mutation like this
Summary mutation
To get a summary of mutations in your account
Method : MootaMutation::summary($params)
Params :
- Required : -
- Optional : $params
Webhook test
This for testing push data to webhook
Method : MootaMutation::webhook($mutationId)
Params :
- Required : $mutationId
- Optional : -
Taggings
Store
Store tagging
Method : MootaTag::store($name)
Params :
- Required : $name
- Optional : -
Update
Update tagging
Method : MootaTag::update($name, $id)
Params :
- Required : $name, $id
- Optional : -
Mootapay
Contract
Create contract
Method : MootaPay::contract($data)->save()
Params :
- Required : $data
- Optional : -
Transaction List
List of payment transaction
Method : MootaPay::list()
Params :
- Required : -
- Optional : -
Payment Method
Available payment method
Method : MootaPay::method()
Params :
- Required : -
- Optional : -
Cancelled Transaction
Can cancel transaction with this method
Method : MootaPay::canceled($trxId)
Params :
- Required : -
- Optional : -
Plugin Token
Method : MootaPay::pluginToken()
Params :
- Required : -
-
Optional : -
Moota Callback
You will receive this data from the webhook url that you have registered
If you leave data blank, this method will generate your callback data from faker api.
Method : MootaPay::callback($data)
Params :
- Required : -
- Optional : $data
Topups
Topup to
List bank for transfer to topup point
Topup
Topup point to moota
History
History of topup
Point
List of available point
Point used
View the history of the point has been used
Or you can filter like this
Redeem code
Webhooks
List
Get list of webhook
Or you can use filter like this
Store
Create/store list of webhook
Destroy
Delete list of webhook
Merchant
List
List of merchant
Store
Create merchant data
Store Legal
create, add, or upload merchant legality files
Update
Update merchant data
Update Legal
Update merchant legality files
Credit
Contribution
This project is far from perfect. many Moota APIs that have not been implemented. I would be very happy if any of you could contribute for this project.
Fork this project and make merge request. :)