xamarin条带与银行身份验证的集成

xamarin条带与银行身份验证的集成,xamarin,xamarin.android,stripe-payments,3d-secure,Xamarin,Xamarin.android,Stripe Payments,3d Secure,我正在尝试将stripe支付网关与xamarin android应用程序集成。如果不需要卡验证,集成正在工作,但如果需要在银行端执行卡验证,则无法找到方法。我遵循的实施步骤是: 步骤1:在客户端创建令牌 步骤2:在api端创建支付意图 Var charge = new PaymentIntentCreateOption{ Amount = 10, Currency = "usd", Description = "Test", Customer = cust

我正在尝试将stripe支付网关与xamarin android应用程序集成。如果不需要卡验证,集成正在工作,但如果需要在银行端执行卡验证,则无法找到方法。我遵循的实施步骤是: 步骤1:在客户端创建令牌 步骤2:在api端创建支付意图

Var charge = new PaymentIntentCreateOption{
Amount = 10,
Currency = "usd",
Description = "Test",
Customer = customerid,
Confirm = true
}
charge.AddExtraParam("payment_method_data[type]", "card");
charge.AddExtraParam("payment_method_data[card[token]]", token);

var serice = new PaymentIntentService();
PaymentIntent intent = serice.Create(charge);
对于3d安全卡,作为响应,我得到: Status=“require\u actiom” NextAction.Type=“使用\u stripe\u sdk”


如何在xamarin android应用程序的客户端验证此付款?

Stripe没有正式的xamarin库,因此没有直接的方法。您可能应该做的是在创建PaymentIntent时传递一个
return\u url
,这样您就可以得到“NextAction.type=redirect\u to\u url”。然后将该URL传递回客户端,并在浏览器中打开它(这是客户验证付款的页面)。