behpardakht

package
v0.0.0-...-b337d50 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CREATE_TRANSACTION_URL = "https://bpm.shaparak.ir/pgwchannel/services/pgw?wsdl"
	VERIFY_TRANSACTION_URL = "https://bpm.shaparak.ir/pgwchannel/services/pgw?wsdl"
	TERMINAL_URL           = "https://bpm.shaparak.ir/pgwchannel/startpay.mellat"
)
View Source
const Success = -1

Variables

This section is empty.

Functions

func New

func New(
	identityData IdentityData,
) *behpardakht

func NewPaymentRequest

func NewPaymentRequest(
	orderId string,
	amount uint64,
	callBackUrl string,
	payerId string,
) *paymentRequest

func NewVerifyRequest

func NewVerifyRequest(
	orderId string,
	saleOrderId string,
	saleReferenceId string,
) *verifyRequest

Types

type IdentityData

type IdentityData interface {
	GetIdentityData() (string, string, error)
}

type PaymentResponse

type PaymentResponse struct {
	ResponseCode int    `json:"response_code"`
	RefId        string `json:"ref_id"`
	RawResponse  string `json:"raw_response"`
}

type VerifyResponse

type VerifyResponse struct {
	ResponseCode int    `json:"response_code"`
	RawResponse  string `json:"raw_response"`
}

Jump to

Keyboard shortcuts

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