我正在尝试实现 3d 安全 V2,但是当我尝试调用该方法时
Secure3dService.CheckEnrollment(cardData).Execute(Secure3dVersion.Two)
我收到“未为第二版配置 Secure 3d”的错误。有人知道这个错误吗?
我正在尝试实现 3d 安全 V2,但是当我尝试调用该方法时
Secure3dService.CheckEnrollment(cardData).Execute(Secure3dVersion.Two)
我收到“未为第二版配置 Secure 3d”的错误。有人知道这个错误吗?
找到了上述错误的解决方案。在 ServiceContainer 中配置 3d 安全 V2 时,不要选择 Secure3dVersion = Secure3dVersion.Two。我不知道,但全球支付 api 不支持配置中的 Secure3dVersion.Two。
下面是我的配置设置
ServicesContainer.ConfigureService(new GpEcomConfig
{
MerchantId = MerchantId,
//AccountId = "ecom3ds",
AccountId = "3dsv2",
SharedSecret = SharedSecret,
ServiceUrl = V2ServiceUrl,
ChallengeNotificationUrl = "https://www.example.com/challengeNotificationUrl",
//MethodNotificationUrl = "https://www.example.com/methodNotificationUrl",
MethodNotificationUrl = "https://localhost:44345/ThreeDSecureNotification.aspx",
Secure3dVersion = Secure3dVersion.Any
});
我们还包括了这些
HostedPaymentConfig = new HostedPaymentConfig
{
Version = "2"
},
Secure3dVersion = Secure3dVersion.Two,