paypal

package module
v0.0.0-...-df2c501 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 License: MIT Imports: 0 Imported by: 0

README

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)

Documentation

Overview

Package paypal provides a PayPal SDK.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Token      string
	Production bool
}

Client keeps the data to make a correct request to PayPal.

func (*Client) URL

func (c *Client) URL() string

URL returns the URL used for a client request (whether client is set for production or not)

Directories

Path Synopsis
Package pdt implements PayPal Payment Data Transfer.
Package pdt implements PayPal Payment Data Transfer.

Jump to

Keyboard shortcuts

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