قالب وردپرس درنا توس
Home / Tips and Tricks / How to Accept Bitcoin or Cryptocurrency Payments on Your Website – CloudSavvy IT

How to Accept Bitcoin or Cryptocurrency Payments on Your Website – CloudSavvy IT



Someone who integrates a cryptocurrency payment method for their ecommerce site on their mobile phone.
Shutterstock / NicoElNino

Cryptocurrency is getting more famous every day and more online storefronts are choosing to offer it as an alternative payment method to credit cards and other digital wallets. How do you integrate it on your ecommerce site?

How does this work?

Not technically need any form of integration on your website. Cryptocurrencies are not like credit cards. They are actually more like digital cash and have payment and wallet systems built in. So you can have people send payments directly to your wallet, similar to paying cash in a brick-and-mortar store.

That̵

7;s messy, though, and it would be nicer if a complete POS system could be easily integrated into your site, allowing users to checkout quickly and receive their products immediately. There are a number of cryptocurrency payment processors that you can integrate on your site. Coinbase is the most popular, although there are others such as CoinPayments and BitPay.

Using these payment processors, you can create checkout pages that integrate with your existing systems. If you’re using a platform that directly supports them, such as Shopify and WooCommerce, all you have to do is link them. Otherwise, you must use a processor’s API directly.

Using Shopify

If you’re using Shopify, one of the largest ecommerce platforms, you’re in luck as cryptocurrency has top-notch support on the platform. Shopify supports many alternative payment methods, including Coinbase and a few other crypto processors.

If you’re not using Shopify, but want to build an ecommerce website, we recommend it anyway for its ease of use.

Go to the settings at the bottom left of your shopping dashboard and click on ‘Payments’.

Go to the settings at the bottom left of your store dashboard and click

Then select “Alternative Payment Providers” and search for Coinbase.

Select

You will then need to enter your Coinbase email address and API key, which can be found under Settings> API. After that, users can use Coinbase in addition to other payment providers you support.

Using WooCommerce for WordPress

WooCommerce is a popular plugin for selling products from WordPress sites and has integrations with Coinbase. You need to install the Coinbase Commerce Payment Gateway plugin from the WordPress marketplace.

Install the Coinbase Commerce Payment Gateway plugin from the WordPress marketplace.

Next, under WooCommerce> Settings> Payments, you need to enable it. And then, under Manage, you need to configure the plugin.

under WooCommerce> Settings> Payments, you need to enable and configure the plugin under “Manage”.  “width =” 700 “height =” 351 “src =” / pagespeed_static / 1.JiBnMqyl6S.gif “onload =” pagespeed .lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);  “onerror =” this.onerror = null;  pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);  “/></p>
<p>This panel needs two things from you: your Coinbase API key and the “Webhook Shared Secret”, which Coinbase uses to send WordPress messages.  You need to add an endpoint from the Coinbase webhook subscriptions page and copy the shared secret to the box.</p>
<h2 role=Using Coinbase Payments

Coinbase, like PayPal, supports embeddable buttons that you can add to your website. However, if you are looking for a more advanced integration, you should use their API directly.

Go to the Coinbase Commerce Dashboard and select “create checkout”. Enter your product information, description and price, then upload an image.

In Coinbase, select Commerce Dashboard

You will then receive a checkout button to embed or a link to a checkout page.

You will get an embed checkout button or a link to a checkout page.

In itself, this is just a button to send cash. If you want to do something automatically after the payment is completed, you need to register a callback feature.

BuyWithCrypto.registerCallback('onSuccess', function(e){
// Charge was successfully completed
});

BuyWithCrypto.registerCallback('onFailure', function(e){
// Charge failed
});

BuyWithCrypto.registerCallback('onPaymentDetected', function(e){
// Payment has been detected but not yet confirmed
});

It is called with the following event object:

{buttonId: “unique ID for this embeddable button”, code: CHARGE_CODE, event: “charge_failed” OR “charge_confirmed” OR “payment_detected”}

RELATED: How to accept credit card payments on your website


Source link