bkashgo

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 1 Imported by: 0

README

bKashGo

This go SDK aim to implement bKash tokenized api

Go Reference CodeQL

Ref:

Feautures

Tokenized Checkout
  • Grant Token
  • Refresh Token
  • Create Agreement
  • Execute Agreement
  • Query Agreement
  • Cancel Agreement
  • Create Payment
  • Execute Payment
  • Query Payment
  • Search Transaction
  • Refund Transaction
  • Refund Status

Examples:

To Generate a Token

// bKash Instance
bkash := bkashgo.GetBkash(username, password, appKey, appSecret, isLiveStore)

// Token and error message
token, err := bkash.GetToken()
if err != nil {
  panic(err)
}
fmt.Println(token)

To Generate Refresh Token

// bKash Instance
bkash := bkashgo.GetBkash(username, password, appKey, appSecret, isLiveStore)

// Token and error message
token, err := bkash.GetToken()
if err != nil {
  panic(err)
}

refreshToken, err := bkash.RefreshToken(&models.TokenRequest{
  RefreshToken: token.RefreshToken
})
if err != nil {
  panic(err)
}
fmt.Println(refreshToken)

Made with ❤️ by Rakibul Yeasin

Documentation

Overview

Package bkashgo provides the methods for tokenized checkout

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBkash

func GetBkash(username, password, appKey, appSecret string, isLiveStore bool) methods.BkashTokenizedCheckoutService

Initiates a new BkashGo object It also publishes sets of methods for tokenized checkout

Types

This section is empty.

Directories

Path Synopsis
Package common provides the constants and error codes
Package common provides the constants and error codes
Package hooks provides the methods for making requests to Bkash API
Package hooks provides the methods for making requests to Bkash API
Package methods provides the methods for tokenized checkout
Package methods provides the methods for tokenized checkout
Package models provides the structs for the response
Package models provides the structs for the response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL