mollie

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Name = `mollie`

Variables

View Source
var SupportedCurrencies = []string{
	"USD", "EUR", "GBP", "AUD", "CAD", "CHF",
	"DKK", "NOK", "SEK", "PLN", "CZK", "HUF",
	"RON", "BGN", "HRK", "ISK", "TRY", "JPY",
}

Functions

func MapRefundStatus

func MapRefundStatus(status string) string

MapRefundStatus 映射 Mollie 退款状态 状态文档: https://docs.mollie.com/status/mollie-refund-statuses

func MappingStatus

func MappingStatus(status string, result *config.Result)

MappingStatus 映射 Mollie 支付状态 状态文档: https://docs.mollie.com/status/mollie-payment-statuses

func MoneyFeeToString

func MoneyFeeToString(moneyFee float64) string

MoneyFeeToString 金额转字符串

func New

func New() payment.Driver

Types

type Mollie

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

func (*Mollie) IsSupported

func (a *Mollie) IsSupported(s config.Support) bool

func (*Mollie) Pay

func (a *Mollie) Pay(ctx echo.Context, cfg *config.Pay) (*config.PayResponse, error)

Pay 创建 Mollie Payment 文档: https://docs.mollie.com/reference/v2/payments-api/create-payment

func (*Mollie) PayNotify

func (a *Mollie) PayNotify(ctx echo.Context) error

PayNotify 处理 Mollie Webhook 回调 文档: https://docs.mollie.com/guides/credits/webhook#handling-the-webhook-call

func (*Mollie) PayQuery

func (a *Mollie) PayQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)

PayQuery 查询支付状态 文档: https://docs.mollie.com/reference/v2/payments-api/get-payment

func (*Mollie) Refund

func (a *Mollie) Refund(ctx echo.Context, cfg *config.Refund) (*config.Result, error)

Refund 创建退款 文档: https://docs.mollie.com/reference/v2/refunds-api/create-refund

func (*Mollie) RefundNotify

func (a *Mollie) RefundNotify(ctx echo.Context) error

RefundNotify 处理退款通知 Mollie 不单独发退款 webhook,但此方法需独立返回退款语义的结果。 调用方应传入 refund_id,通过查询退款详情获取信息 文档: https://docs.mollie.com/reference/v2/refunds-api/get-refund

func (*Mollie) RefundQuery

func (a *Mollie) RefundQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)

RefundQuery 查询退款状态 文档: https://docs.mollie.com/reference/v2/refunds-api/get-refund

func (*Mollie) SetAccount

func (a *Mollie) SetAccount(account *config.Account) payment.Driver

func (*Mollie) SetNotifyCallback

func (a *Mollie) SetNotifyCallback(callback payment.NotifyCallback) payment.Driver

func (*Mollie) VerifySign

func (a *Mollie) VerifySign(ctx echo.Context) error

VerifySign 验证签名(Mollie使用IP白名单+Bearer Token验证)

Jump to

Keyboard shortcuts

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