Fireship · @fireship
Get Paid with Crypto in your App // Coinbase Commerce Tutorial
Uploaded March 31, 2021 · Length 8:02
Summary
Implement cryptocurrency payments on the web using Coinbase Commerce API, allowing users to receive crypto payments in various formats.
- coinbase commerce tutorial
- crypto payments on the web
- coinbase api integration
- cryptocurrency payment processing
- webhook notifications
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
as of last week a tesla can be paid for
- 0:02
with bitcoin
- 0:03
as of this week all fire ship courses
- 0:05
can be paid for with bitcoin and as of
- 0:06
the end of this video
- 0:08
your product can also be paid for with
- 0:10
bitcoin i've always been pretty
- 0:11
skeptical of crypto but the more i work
- 0:12
with it as a developer and the more the
- 0:14
fed runs the money printer the more i
- 0:16
like it
- 0:16
but most importantly i want to give my
- 0:18
customers choice if the customer wants
- 0:20
to pay with bitcoin
- 0:21
ethereum litecoin or whatever they
- 0:23
should have that option
- 0:24
in today's video you'll learn how to
- 0:25
implement cryptocurrency payments on the
- 0:27
web
- 0:27
using the coinbase commerce api giving
- 0:30
you the ability to receive crypto
- 0:31
payments in a variety of different
- 0:32
formats first of all how does a
- 0:34
cryptocurrency payment work
- 0:36
well unlike a credit card payment which
- 0:37
is processed by a central authority
- 0:39
a crypto payment gets broadcast to a
- 0:41
peer-to-peer network around the world
- 0:43
where miners compete with their
- 0:44
computing power to confirm that
- 0:46
transaction on the blockchain
- 0:48
that process can take time maybe 10
- 0:50
minutes or so before the transaction is
- 0:52
fully confirmed on coinbase commerce
- 0:54
the first thing you'll do is create a
- 0:56
charge which is more like a payment
- 0:57
intent
- 0:58
it has an amount and description and can
- 1:00
be denominated in us dollars when a
- 1:02
charge is created it has a lifespan of
- 1:04
one hour
- 1:05
and coinbase in the background will
- 1:06
monitor the payment networks
- 1:08
looking for a payment to be confirmed on
- 1:10
this charge the charge
- 1:11
also provides a url hosted by coinbase
- 1:14
where the user can either pay with
- 1:15
crypto or their coinbase account
- 1:17
now after the user submits their payment
- 1:19
coinbase will fire a web hook
- 1:21
that can notify your server that the
- 1:23
charge is now pending
- 1:24
it's at that point that you can notify
- 1:26
the customer that the payment has been
- 1:27
received and we're just waiting for the
- 1:29
final confirmation on the blockchain
- 1:30
before we ship it out at some point in
- 1:32
the future
- 1:33
coinbase will see the transaction is
- 1:34
confirmed and will send another web hook
- 1:36
to your server
- 1:37
notifying you that everything is good to
- 1:39
go unless something went wrong
- 1:40
like a user may have overpaid or
- 1:42
underpaid because crypto is so volatile
- 1:44
or maybe they accidentally made multiple
- 1:46
payments on the same charge in which
- 1:48
case you'll need to manually resolve the
- 1:50
charge
- 1:50
things like that shouldn't happen often
- 1:52
but those are just some of the caveats
- 1:53
to be aware of when working with crypto
- 1:55
in addition to coinbase commerce you
- 1:57
might also look into bitpay
- 1:58
or coingate as alternatives or if you


