Accept cryptocurrency payments on your Vendure shop using this plugin and Coinbase's hosted checkout flow.
Have your customers pay with their favorite cryptocurrency with the Vendure Coinbase plugin
Accept cryptocurrency payments on your Vendure shop using this plugin and Coinbase's hosted checkout flow.
yarn install vendure-plugin-coinbase
Add the plugin to your vendure-config.ts
:
plugins: [CoinbasePlugin];
coinbase-payment-handler
https://storefront/order/
. Your customer will be redirected
to this page + order code: https://storefront/order/897HH7HG7
https://<your-vendure-server>/payments/coinbase
You can now call the mutation createCoinbasePaymentIntent
to get a redirectUrl to the Coinbase hosted checkout page.
You can redirect your customer to this URL, so your customer can continue making a payment on the Coinbase platform.
After payment the customer will be redirected to https://storefront/order/897HH7HG7
Orders are NOT transitioned to PaymentSettled
directly after Coinbase redirects the customer to the confirmation page, because
crypto transactions can take some time to confirm. You should notify your customer with a message that the order will be
handled when their transaction is confirmed. This can take a few minutes.
Refunds are not supported. If you want to refund a payment done via Coinbase you need to manually do so. This plugin will not do refunds via Coinbase.