Download the PHP package remitano/remitano-php without Composer
On this page you can find all versions of the php package remitano/remitano-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download remitano/remitano-php
More information about remitano/remitano-php
Files in remitano/remitano-php
Package remitano-php
Short Description Remitano API Client
License MIT
Homepage https://github.com/Remitano/Api
Informations about the package remitano-php
Remitano PHP API Client
Feel free to fork, modify & redistribute under the MIT license.
Installation
Via Composer
Or clone this repository and include it in your project
Usage
Create API Key
Visit https://remitano.com/settings/api_key to create API key.
Get Authenticator secret
Visit https://remitano.com/settings/authenticator to get your authenticator secret.
Note: This is needed to perform actions which need 2FA authentication like withdrawals, otherwise, you won't need it.
Setup Remitano client
Payment gateway
Visit https://developers.remitano.com/api-explorer - Merchant section for more information.
Charges
Get
Create
- With coin currency:
Note: For now, we only support usdt
as the price coin currency.
- With fiat:
We support fiat currency of 56 countries that Remitano are supporting, i.e.,
USD
,AUD
. (You could find entire list in our developer docs).
Withdrawals
Get
Create
-
Withdraw to external coin address
- Withdraw to other remitano account
Callbacks
Charges
Whenever a charge is changed to completed or cancelled in our system:
- we will send a POST request to
charge.cancelled_or_completed_callback_url
withremitano_id
param. - if user is still on our site, we will also redirect user to
object.cancelled_or_completed_callback_url
withremitano_id
param (GET request).
After receiving these callbacks, you could call $merchant_charges->get($params['remitano_id'])
to get the updated information and process accordingly.
Withdrawals
Whenever a withdrawal is changed to completed or cancelled in our system:
- we will send a POST request to
withdrawal.cancelled_or_completed_callback_url
withremitano_id
param.
After receiving these callbacks, you could call $merchant_withdrawals->get($params['remitano_id'])
to get the updated information and process accordingly.
Other API calls
Visit https://developers.remitano.com/api-explorer for more API specs, APIs can be called directly by using method get
, post
, put
of $client
Errors
When receiving non 200-299 http code, an Error will be raised.
Sandbox testing
We have a Testnet at https://remidemo.com.
You could register an account there, then submit a request at this google form with your Remidemo username, so we could help to setup your testing account as a merchant.
After that, you could start your sandbox testing by setting ENV variable: putenv("REMITANO_SANDBOX=1")
.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
All versions of remitano-php with dependencies
guzzlehttp/guzzle Version ^7.3
spomky-labs/otphp Version ^10.0
ext-json Version *