Documentation
¶
Index ¶
- Constants
- Variables
- func MapRefundStatus(status string) string
- func MappingStatus(status string, result *config.Result)
- func MoneyFeeToString(moneyFee float64) string
- func New() payment.Driver
- type Mollie
- func (a *Mollie) IsSupported(s config.Support) bool
- func (a *Mollie) Pay(ctx echo.Context, cfg *config.Pay) (*config.PayResponse, error)
- func (a *Mollie) PayNotify(ctx echo.Context) error
- func (a *Mollie) PayQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)
- func (a *Mollie) Refund(ctx echo.Context, cfg *config.Refund) (*config.Result, error)
- func (a *Mollie) RefundNotify(ctx echo.Context) error
- func (a *Mollie) RefundQuery(ctx echo.Context, cfg *config.Query) (*config.Result, error)
- func (a *Mollie) SetAccount(account *config.Account) payment.Driver
- func (a *Mollie) SetNotifyCallback(callback payment.NotifyCallback) payment.Driver
- func (a *Mollie) VerifySign(ctx echo.Context) error
Constants ¶
const Name = `mollie`
Variables ¶
var SupportedCurrencies = []string{
"USD", "EUR", "GBP", "AUD", "CAD", "CHF",
"DKK", "NOK", "SEK", "PLN", "CZK", "HUF",
"RON", "BGN", "HRK", "ISK", "TRY", "JPY",
}
Functions ¶
func MapRefundStatus ¶
MapRefundStatus 映射 Mollie 退款状态 状态文档: https://docs.mollie.com/status/mollie-refund-statuses
func MappingStatus ¶
MappingStatus 映射 Mollie 支付状态 状态文档: https://docs.mollie.com/status/mollie-payment-statuses
Types ¶
type Mollie ¶
type Mollie struct {
// contains filtered or unexported fields
}
func (*Mollie) Pay ¶
Pay 创建 Mollie Payment 文档: https://docs.mollie.com/reference/v2/payments-api/create-payment
func (*Mollie) PayNotify ¶
PayNotify 处理 Mollie Webhook 回调 文档: https://docs.mollie.com/guides/credits/webhook#handling-the-webhook-call
func (*Mollie) PayQuery ¶
PayQuery 查询支付状态 文档: https://docs.mollie.com/reference/v2/payments-api/get-payment
func (*Mollie) Refund ¶
Refund 创建退款 文档: https://docs.mollie.com/reference/v2/refunds-api/create-refund
func (*Mollie) RefundNotify ¶
RefundNotify 处理退款通知 Mollie 不单独发退款 webhook,但此方法需独立返回退款语义的结果。 调用方应传入 refund_id,通过查询退款详情获取信息 文档: https://docs.mollie.com/reference/v2/refunds-api/get-refund
func (*Mollie) RefundQuery ¶
RefundQuery 查询退款状态 文档: https://docs.mollie.com/reference/v2/refunds-api/get-refund
func (*Mollie) SetNotifyCallback ¶
func (a *Mollie) SetNotifyCallback(callback payment.NotifyCallback) payment.Driver