paypal

package
v0.0.0-...-4d04b2c Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaypalService

type PaypalService struct {
	Host        string `json:"host"`
	ClientId    string `json:"clientId"`
	Secret      string `json:"secret"`
	AccessToken string `json:"access_token"`
	UnitTest    bool   `json:"unitTest"`
}

func (*PaypalService) CancelPay

func (paypalService *PaypalService) CancelPay(id string) error

func (*PaypalService) Init

func (paypalService *PaypalService) Init()

func (*PaypalService) Notify

func (paypalService *PaypalService) Notify(ctx *gin.Context) (*model2.PaymentNotification, error)

func (*PaypalService) Pay

func (paypalService *PaypalService) Pay(ctx, payData *model2.PayData) (*model2.PaymentNotification, error)

func (*PaypalService) Refund

func (paypalService *PaypalService) Refund(ctx context.Context, refundData *model2.RefundData) (string, error)

func (*PaypalService) RefundNotify

func (paypalService *PaypalService) RefundNotify(ctx *gin.Context) error

type SendCode

type SendCode string
const (
	SendCodeAuth SendCode = "v1/oauth2/token"
)

Jump to

Keyboard shortcuts

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