paypalservice

package
v0.0.0-...-5d64da7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// PaypalSession The global paypal session
	PaypalSession *paypalsdk.Client
)

Functions

func ExecutePayment

func ExecutePayment(PayerID string, PaymentID string) *paypalsdk.ExecuteResponse

ExecutePayment will finalize and execute an approved PayPal payment

func Init

func Init()

Init the paypal service

func MakePaypalDonation

func MakePaypalDonation(amount paypalsdk.Amount) *paypalsdk.CreatePaymentResp

MakePaypalDonation will create a paypal payment and return the CreatePaymentResponse object with relevant links It will also store the payment object within the database for retrieval in the future.

Types

This section is empty.

Jump to

Keyboard shortcuts

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