"stripeErr :错误:您无法使用此 API 接受付款,因为印度不再支持它



我在2022年2月23日使用条纹时出现此错误

检查您的帐户。您应提供有效的IEC出口代码以接受任何付款。

根据RBI的最新指导方针,Stripe已从收费API转换为付款意向API。根据数据使用以下API:

Stripe::PaymentIntent.create(
:customer => customer.id,
:amount => params[:amount],
:description => 'Rails Stripe transaction',
:currency => 'usd',
)

它对我有效。在这里结账条纹API文档

您需要更改"收费";至";paymentIntents";示例:

const payment  = await stripe.charges.create(  //Change here
{
amount: subTotal * 100,
currency: "inr",
customer: customer.id,
receipt_email: token.email,
},
{
idempotencyKey: uuidv4(),
}
);

相关内容

最新更新