/toyyibpay-dart

unofficial ToyyibPay SDK for dart

Primary LanguageDartGNU General Public License v3.0GPL-3.0

toyyibpay_sdk

Pub Version

unofficial ToyyibPay SDK for dart

toyyibpay sdk require SecretKey to access the API, that means toyyibpay sdk only suitable for Server application, Consider the consequences of using it on Front-End Application, your secret key must remain secret

Installation

on pubspec.yaml

dependencies:
  toyyibpay_sdk: 

What?, Why?, How?

What

toyyibpay sdk for you to call toyyibpay endpoint easily

Why

Problem

you may be want to build a dart server, but to integrate with toyyibpay api must be hard as the docs is written in php

Solution

toyyibpay dart sdk already turn the api reference to sdk application, so you just can only worry about dart code.

How

this sdk provide you functions of toyyibpay api

Example

void main() async {
  ToyyibPay toyyibpay = ToyyibPay("YOUR_SECRET_KEY_HERE", sandbox: true); // sandbox is optional, its for sandbox mode, set it to false or remove it if you want to use production link instead

  var banks = await toyyibpay.getBank(); /// Read [getBank](https://toyyibpay.com/apireference/#gb)

  print(banks); // instance of Banks
  // ...
}

Read:

Contents

Usage

Declaration

 var toyyibpay = ToyyibPay("YOUR_SECRET_KEY_HERE", sandbox: true);

Support

I'm open contribution for documentation, bug report, code maintenance, etc. properly submit an issue or send a pull request.

Documentation

any typos, grammar error, unintended word, or ambiguous meaning. you can PR. or maybe create an issue. this is the one i really need your help

Bug/Error

any bugs, unintended word comments, confusing variable naming. you can create an issue, but also a PR really appreciated.

Feature request

any missing feature, cool feature, like prefix json key command, or dynamic changing. you can create an issue, or write a dart extension for it.

Contribute

if you want to help maintain this library, kindly read Contributing.md.

Or

you can buy me a coffee:

Donate Now
ToyyibPay
Thanks for your support.