payping

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PAYPING_REQUEST_API_ENDPOINT               = "/v2/pay"
	PAYPING_VERIFY_API_ENDPOINT                = "/v2/pay/verify"
	PAYPING_MULTI_PAYMENT_API_ENDPOINT         = "/v2/pay/multi"
	PAYPING_BLOCK_MONEY_PAYMENT_API_ENDPOINT   = "/v2/pay/BlockMoney"
	PAYPING_UNBLOCK_MONEY_PAYMENT_API_ENDPOINT = "/v2/pay/UnBlockMoney"
	PAYPING_POS_PAYMENT_API_ENDPOINT           = "/v1/pos"
)
View Source
const (
	PAYPING_HOST = "https://api.payping.ir"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockedPaymentRequest

type BlockedPaymentRequest struct {
	Pairs       []pairs `json:"pairs" validate:"required"`
	PayerName   string  `json:"payerName" validate:"required"`
	ReturnUrl   string  `json:"returnUrl" validate:"required,url"`
	ClientRefId string  `json:"clientRefId"`
}

type ErrorResponse

type ErrorResponse struct {
	ErrorCode    any    `json:"error_code"`
	ErrorMessage string `json:"error_message"`
}

type PaymentRequest

type PaymentRequest struct {
	Amount        int32  `json:"amount" validate:"required,min=100,max=50000000"`
	PayerIdentity string `json:"payerIdentity"`
	PayerName     string `json:"payerName" validate:"required"`
	Description   string `json:"description"`
	ReturnUrl     string `json:"returnUrl" validate:"required,url"`
	ClientRefId   string `json:"clientRefId"`
}

type PaymentResponse

type PaymentResponse struct {
	Code string `json:"code"`
}

type PaymentSuspedingRequest

type PaymentSuspedingRequest struct {
	Amount        int32  `json:"authority" validate:"required,min=100,max=50000000"`
	PayerIdentity string `json:"payerIdentity"`
	PayerName     string `json:"payerName"`
	Description   string `json:"description"`
	ReturnUrl     string `json:"returnUrl" validate:"required,url"`
	ClientRefId   string `json:"clientRefId"`
}

type PaymentWithTracerIdRequest

type PaymentWithTracerIdRequest struct {
	Amount        int32  `json:"authority" validate:"required,min=100,max=50000000"`
	PayerIdentity string `json:"payerIdentity"`
	PayerName     string `json:"payerName"`
	Description   string `json:"description"`
	ReturnUrl     string `json:"returnUrl" validate:"required,url"`
	ClientRefId   string `json:"clientRefId"`
}

type PaymentWithTracerIdResponse

type PaymentWithTracerIdResponse struct {
	Itd  int32  `json:"itd"`
	Code string `json:"code"`
}

type Payping

type Payping struct {
	// contains filtered or unexported fields
}

func New

func New(client client.Transporter, apiToken string) (*Payping, error)

New create payping provider object

func (*Payping) SettelmentList

func (p *Payping) SettelmentList(ctx context.Context) (interface{}, error)

refrence: https://docs.payping.ir/#operation/WithdrawTransactionsReport

func (*Payping) SettelmentListNumber

func (p *Payping) SettelmentListNumber(ctx context.Context) (interface{}, error)

refrence: https://docs.payping.ir/#operation/WithdrawTransactionsCount

func (*Payping) SettlementDetails

func (p *Payping) SettlementDetails(ctx context.Context) (interface{}, error)

func (*Payping) SettlementRequest

func (p *Payping) SettlementRequest(ctx context.Context) (interface{}, error)

func (*Payping) TransactionsDetails

func (p *Payping) TransactionsDetails(ctx context.Context) (interface{}, error)

refrence: https://docs.payping.ir/#operation/TransactionsReportCount

func (*Payping) TransactionsList

func (p *Payping) TransactionsList(ctx context.Context) (interface{}, error)

refrence: https://docs.payping.ir/#operation/TransactionsReport

func (*Payping) TransactionsNumber

func (p *Payping) TransactionsNumber(ctx context.Context) (interface{}, error)

refrence: https://docs.payping.ir/#operation/WithdrawTransactionsCount

type ReleasingBlockedPaymentRequest

type ReleasingBlockedPaymentRequest struct {
	Code     string `json:"code"`
	ClientId string `json:"clientId"`
}

type SharePaymentRequest

type SharePaymentRequest struct {
	Pairs       []pairs `json:"pairs" validate:"required"`
	PayerName   string  `json:"payerName" validate:"required"`
	ReturnUrl   string  `json:"returnUrl" validate:"required,url"`
	ClientRefId string  `json:"clientRefId"`
}

type VerifyRequest

type VerifyRequest struct {
	RefId  string `json:"refId" validate:"required"`
	Amount int32  `json:"Amount" validate:"required,min=100,max=50000000"`
}

type VerifyResponse

type VerifyResponse struct {
	Amount      int32  `json:"amount"`
	CardNumber  string `json:"cardNumber"`
	CardHashPan string `json:"cardHashPan"`
}

Jump to

Keyboard shortcuts

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