example

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 5 Imported by: 2

README

Sample App

This is a very simple, very minimalist example to demonstrate integrating Midtrans with Go

Run The app

  1. Clone the repository, open terminal in this /example/simple/coreapi-card-3ds folder.
  2. Run the web server using: go run main.go
  3. The smple app will run at port 3000. Open localhost:3000 from browser.

Run command line app

  1. Clone the repository, open terminal in this /example/simple/coreapi folder.
  2. Run the app using: go run main.go

Documentation

Index

Constants

View Source
const IrisApproverKeySandbox = "IRIS-1595c12b-6814-4e5a-bbbb-9bc18193f47b"
View Source
const IrisCreatorKeySandbox = "IRIS-330198f0-e49d-493f-baae-585cfded355d"
View Source
const SandboxClientKey2 = "SB-Mid-client-nKsqvar5cn60u2Lv"
View Source
const SandboxServerKey1 = "SB-Mid-server-TvgWB_Y9s81-rbMBH7zZ8BHW"
View Source
const SandboxServerKey2 = "SB-Mid-server-TOq1a2AVuiyhhOjvfs3U_KeO"

Variables

This section is empty.

Functions

func CoreParam

func CoreParam() *coreapi.ChargeReqWithMap

func Random

func Random() string

func SnapParam

func SnapParam() *snap.Request

func SnapParamWithMap

func SnapParamWithMap() *snap.RequestParamWithMap

Types

This section is empty.

Directories

Path Synopsis
simple

Jump to

Keyboard shortcuts

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