Documentation ¶
Index ¶
- Constants
- type BlockedPaymentRequest
- type ErrorResponse
- type PaymentRequest
- type PaymentResponse
- type PaymentSuspedingRequest
- type PaymentWithTracerIdRequest
- type PaymentWithTracerIdResponse
- type Payping
- func (p *Payping) PaymentSuspending(ctx context.Context, req *PaymentSuspedingRequest) error
- func (p *Payping) PaymentWithTracingId(ctx context.Context, req *PaymentWithTracerIdRequest) (*PaymentWithTracerIdResponse, error)
- func (p *Payping) ReleasingBlockedPayment(ctx context.Context, req *ReleasingBlockedPaymentRequest) error
- func (p *Payping) RequestBlockingPayment(ctx context.Context, req *BlockedPaymentRequest) (*PaymentResponse, error)
- func (p *Payping) RequestPayment(ctx context.Context, req *PaymentRequest) (*PaymentResponse, error)
- func (p *Payping) RequestSharePayment(ctx context.Context, req *SharePaymentRequest) (*PaymentResponse, error)
- func (p *Payping) SettelmentList(ctx context.Context) (interface{}, error)
- func (p *Payping) SettelmentListNumber(ctx context.Context) (interface{}, error)
- func (p *Payping) SettlementDetails(ctx context.Context) (interface{}, error)
- func (p *Payping) SettlementRequest(ctx context.Context) (interface{}, error)
- func (p *Payping) TransactionsDetails(ctx context.Context) (interface{}, error)
- func (p *Payping) TransactionsList(ctx context.Context) (interface{}, error)
- func (p *Payping) TransactionsNumber(ctx context.Context) (interface{}, error)
- func (p *Payping) VerifyPayment(ctx context.Context, req *VerifyRequest) (*VerifyResponse, error)
- type ReleasingBlockedPaymentRequest
- type SharePaymentRequest
- type VerifyRequest
- type VerifyResponse
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 ErrorResponse ¶
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 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) PaymentSuspending ¶
func (p *Payping) PaymentSuspending(ctx context.Context, req *PaymentSuspedingRequest) error
func (*Payping) PaymentWithTracingId ¶
func (p *Payping) PaymentWithTracingId(ctx context.Context, req *PaymentWithTracerIdRequest) (*PaymentWithTracerIdResponse, error)
refrence: https://docs.payping.ir/#operation/CreateIdPosPayment
func (*Payping) ReleasingBlockedPayment ¶
func (p *Payping) ReleasingBlockedPayment(ctx context.Context, req *ReleasingBlockedPaymentRequest) error
func (*Payping) RequestBlockingPayment ¶
func (p *Payping) RequestBlockingPayment(ctx context.Context, req *BlockedPaymentRequest) (*PaymentResponse, error)
refrence: https://docs.payping.ir/#operation/CreateBlockPayment
func (*Payping) RequestPayment ¶
func (p *Payping) RequestPayment(ctx context.Context, req *PaymentRequest) (*PaymentResponse, error)
refrence: https://docs.payping.ir/#operation/CreateSinglePayment
func (*Payping) RequestSharePayment ¶
func (p *Payping) RequestSharePayment(ctx context.Context, req *SharePaymentRequest) (*PaymentResponse, error)
refrence: https://docs.payping.ir/#operation/CreateMultiPayment
func (*Payping) SettelmentList ¶
refrence: https://docs.payping.ir/#operation/WithdrawTransactionsReport
func (*Payping) SettelmentListNumber ¶
refrence: https://docs.payping.ir/#operation/WithdrawTransactionsCount
func (*Payping) SettlementDetails ¶
func (*Payping) SettlementRequest ¶
func (*Payping) TransactionsDetails ¶
refrence: https://docs.payping.ir/#operation/TransactionsReportCount
func (*Payping) TransactionsList ¶
refrence: https://docs.payping.ir/#operation/TransactionsReport
func (*Payping) TransactionsNumber ¶
refrence: https://docs.payping.ir/#operation/WithdrawTransactionsCount
func (*Payping) VerifyPayment ¶
func (p *Payping) VerifyPayment(ctx context.Context, req *VerifyRequest) (*VerifyResponse, error)
type SharePaymentRequest ¶
type SharePaymentRequest struct {}
type VerifyRequest ¶
type VerifyResponse ¶
Click to show internal directories.
Click to hide internal directories.