有人有Stripe.Net 3D Secure实现的有效示例吗?我有一个适用于非3D安全付款的简单付款表格:
Stripe.StripeConfiguration.SetApiKey("sk_test_MyKey****")
Try
Dim tokenOptions = New Stripe.StripeTokenCreateOptions()
tokenOptions.Card = New Stripe.StripeCreditCardOptions()
tokenOptions.Card.Number = "4000000000003063"
tokenOptions.Card.ExpirationMonth = 5
tokenOptions.Card.ExpirationYear = 2019
tokenOptions.Card.Cvc = 123
Dim tokenService = New Stripe.StripeTokenService()
Dim token = tokenService.Create(tokenOptions)
Dim stSource = New Stripe.Source
Dim charge = New Stripe.StripeChargeCreateOptions()
charge.Amount = 2500
charge.Description = "test"
charge.Currency = "EUR"
charge.SourceTokenOrExistingSourceId = token.Id
Dim chargeService = New Stripe.StripeChargeService
Dim StripeCharge = chargeService.Create(charge)
Response.Write("Success")
Catch ex As Exception
Response.Write("Fail: " & ex.Message)
End Try
具体来说,如何检测到需要进行3D安全检查?