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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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