Add Alipay settings, RSA2 provider implementation, create/return/notify handlers, and provider-specific top-up settlement.
16 lines
400 B
Go
16 lines
400 B
Go
package setting
|
|
|
|
type AlipaySetting struct {
|
|
Enabled bool `json:"enabled"`
|
|
AppID string `json:"app_id"`
|
|
PrivateKey string `json:"private_key"`
|
|
PublicKey string `json:"public_key"`
|
|
GatewayUrl string `json:"gateway_url"`
|
|
NotifyURL string `json:"notify_url"`
|
|
ReturnURL string `json:"return_url"`
|
|
}
|
|
|
|
var Alipay = AlipaySetting{
|
|
GatewayUrl: "https://openapi.alipay.com/gateway.do",
|
|
}
|