gopayment-example

command module
v0.0.0-...-670d5ae Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 1 Imported by: 0

README

GoPayment Example

This repository includes examples of PCI-compliant UI integrations for online payments with GoPayment Package. Within this demo app, you'll find a simplified version of an e-commerce website

Supported Integrations

Golang + Gin Gonic demos of the following client-side integrations are currently available in this repository:

Requirements

Golang 1.17+

Installation

  1. Clone this repo:
git clone https://github.com/mohammadv184/gopayment-example.git

Usage

  1. Complete ./.env file with your Gateway Config - Remember to add http://localhost:3000 as an origin for client key, and merchant account name (all credentials are in string format):
{your_driver}_API_KEY="your_API_key_here"
{your_driver}_MERCHANT_ACCOUNT="your_merchant_account_here"
{your_driver}_CLIENT_KEY="your_client_key_here"
  1. Start the server:
go run -v .
  1. Visit http://localhost:3000/ to select an Payment Gateway and complete the payment.

License

MIT license. For more information, see the LICENSE file in the root directory.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src
web

Jump to

Keyboard shortcuts

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