如何使用Stripe.js元素和React支付比特币?

时间:2017-10-25 08:00:38

标签: reactjs stripe.js react-stripe-elements

考虑bitcoin as payment method,是否有一种简单的方法,使用react-strip-element来显示支持比特币支付的表单?

有没有人尝试过?

我已经使用react-strip-element进行VISA /万事达卡付款:

import { StripeProvider, Elements } from 'react-stripe-elements';

...

<StripeProvider apiKey={stripePublishableKey}>
    <Elements locale={locale}>
        <StripeForm paymentConfig={paymentConfig} dispatch={dispatch} buyerName="toget" />
    </Elements>
</StripeProvider >
...

我的元素<SripeForm>仅在<form><CardElement hidePostalCode style={cardStyle} />和提交按钮内返回。

我不知道这个CardElement是否可以用于比特币支付,或者我是否必须使用其他React Stripe元素。

欢迎任何有关Stripe比特币支付的帮助或经验。

修改

react-strip-element小组给了answer to this question

  

我们目前没有任何比特币元素。您可以使用Stripe Checkout,也可以构建自己的UI并使用Stripe.js v3创建比特币源。

现在只有一个解决方案:使用Stripe Checkout的自定义React实现。如果有足够的时间让我实现它,我会在这里发布:)。

0 个答案:

没有答案