1

Considering bitcoin as payment method, is there a simple way, using react-strip-element, to display a form that enable bitcoin payment?

Has anyone already try it?

I already use react-strip-element for VISA/Mastercard payment:

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

...

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

My element <SripeForm> only returns, within a <form>, <CardElement hidePostalCode style={cardStyle} /> and a submit button.

I don't know if this CardElement can be used for bitcoin payment or if I must use another React Stripe Element.

Any help or experiences with Stripe bitcoin payment is welcome.

Edit

react-strip-element Team gave an answer to this question:

We don't currently have any Elements for bitcoin. You can either use Stripe Checkout, or build your own UI and use Stripe.js v3 to create bitcoin Sources.

So only one solution now: a custom React implementaton using Stripe Checkout. I'll post it here if enough time is left to me to implement it :).

Damien Leroux
  • 11,177
  • 7
  • 43
  • 57

0 Answers0