Add PaypalPaymentProvider

This commit is contained in:
Yang Luo
2023-05-30 19:57:30 +08:00
parent 02e692a300
commit 4c8648d323
6 changed files with 115 additions and 7 deletions

View File

@ -38,6 +38,12 @@ func GetPaymentProvider(typ string, clientId string, clientSecret string, host s
return nil, err
}
return newWechatPaymentProvider, nil
} else if typ == "PayPal" {
newPaypalPaymentProvider, err := NewPaypalPaymentProvider(clientId, clientSecret)
if err != nil {
return nil, err
}
return newPaypalPaymentProvider, nil
}
return nil, nil