Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

xthezealot/paypal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paypal GoDoc Build Coverage Go Report Status Testing

Package paypal provides a PayPal SDK.

Installing

  1. Get package:

    go get -u github.com/arthurwhite/paypal/...
  2. Import it in your code:

    import "github.com/arthurwhite/paypal"

Usage

Make a new client:

pp := &paypal.Client{
	Token:      "G-ddvHQfRB2wqzrHCgdkbx0uXEcgKTcWbG2GjlI581zbPbGxKekGXgyVwU0",
	Production: false,
}

Payment Data Transfer

Import package pdt in your code:

import "github.com/arthurwhite/paypal/pdt"

Get transaction

Use pdt.GetTransaction to retreive a transaction by its ID:

tx, _ := pdt.GetTransaction(pp, "EPC66XON1D4EE27M9")
fmt.Println(tx)

Releases

No releases published

Packages

No packages published

Languages