forked from gongxuegit/tiku-backend.net
feat: modularize external providers
This commit is contained in:
@@ -42,7 +42,7 @@ public sealed class TenantCommerceEndpointTests
|
||||
new UpsertPaymentAccountDto
|
||||
{
|
||||
Provider = "wechat_pay",
|
||||
Status = TenantPaymentAccountStatus.Active,
|
||||
Status = TenantExternalProviderStatus.Active,
|
||||
ConfigPublic = JsonSerializer.SerializeToElement(new
|
||||
{
|
||||
merchantId = "mch",
|
||||
@@ -80,11 +80,11 @@ public sealed class TenantCommerceEndpointTests
|
||||
new UpsertPaymentAccountDto
|
||||
{
|
||||
Provider = "wechat_pay",
|
||||
Status = TenantPaymentAccountStatus.Active,
|
||||
Status = TenantExternalProviderStatus.Active,
|
||||
SecretRef = "tenant_secrets:payment:wechat_pay:default",
|
||||
ConfigPublic = JsonSerializer.SerializeToElement(new
|
||||
{
|
||||
merchantId = "mch",
|
||||
secretRef = "tenant_secrets:payment:wechat_pay:default"
|
||||
merchantId = "mch"
|
||||
})
|
||||
});
|
||||
var accountsResponse = await client.GetAsync("/api/tenant-commerce/payment-accounts?provider=wechat_pay");
|
||||
|
||||
Reference in New Issue
Block a user