Skip to content

Commit 09ff9ee

Browse files
ericbrown99GrieverSY
authored andcommitted
Add "Accept Crypto Payments" tutorial to guides section (base#1719)
* Add Accept Crypto Payments article * Copy edits
1 parent c9a407a commit 09ff9ee

File tree

3 files changed

+369
-48
lines changed

3 files changed

+369
-48
lines changed

apps/base-docs/base-learn/docs/learning-objectives.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Use the script to regenerate this file.
3535
### [Etherscan](./etherscan/etherscan-sbs.md)
3636

3737
- List some of the features of Etherscan
38-
- Read data from the Bored Apes Yacht Club contract on Etherscan
38+
- Read data from the Bored Ape Yacht Club contract on Etherscan
3939
- Write data to a contract using Etherscan.
4040

4141
### [Deploying Smart Contracts](./hardhat-deploy/hardhat-deploy-sbs.md)
@@ -255,4 +255,4 @@ Use the script to regenerate this file.
255255

256256
- Implement wagmi's `useSimulateContract` and `useWriteContract` to send transactions to a smart contract
257257
- Configure the options in `useSimulateContract` and `useWriteContract`
258-
- Call a smart contract function on-demand using the write function from `useWriteContract`, with arguments and a value
258+
- Call a smart contract function on-demand using the write function from `useWriteContract`, with arguments and a value

apps/base-docs/tutorials/data.json

Lines changed: 97 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,34 @@
2222
"duration": "9 min read",
2323
"checksum": "df2b47bc5f070da32258d9533d04c1840d5e1ebeb58de4196e57b272b9b1a6b7"
2424
},
25+
"0_accept-crypto-payments": {
26+
"title": "Accept Crypto Payments",
27+
"slug": "/accept-crypto-payments",
28+
"description": "Configure your app to accept crypto payments with Coinbase Commerce and OnchainKit.",
29+
"author": "eric.base.eth",
30+
"keywords": [
31+
"Account Abstraction",
32+
"AA",
33+
"Smart account",
34+
"Smart Wallet",
35+
"Funding",
36+
"Onramps",
37+
"Onchainkit",
38+
"Onboarding",
39+
"Smart contract wallet",
40+
"Smart account"
41+
],
42+
"tags": [
43+
"account abstraction",
44+
"crypto payments"
45+
],
46+
"difficulty": "intermediate",
47+
"hide_table_of_contents": false,
48+
"displayed_sidebar": null,
49+
"last_updated": "Feb 6, 2025",
50+
"duration": "8 min read",
51+
"checksum": "5ab221b4918117874c1a1b69983acbe0482e4bad6370f86f4cafb8226c0a776c"
52+
},
2553
"0_deploy-with-foundry": {
2654
"title": "Deploying a smart contract using Foundry",
2755
"slug": "/deploy-with-foundry",
@@ -76,9 +104,9 @@
76104
],
77105
"difficulty": "beginner",
78106
"displayed_sidebar": null,
79-
"last_updated": "Aug 14, 2024",
80-
"duration": "15 min read",
81-
"checksum": "b977f1f187d1f846e832710d5b4715a8f351ebb95dd392c970038adaec2cd94f"
107+
"last_updated": "Feb 6, 2025",
108+
"duration": "14 min read",
109+
"checksum": "1a4ff0e8fb3bdb19eb31b23839e970328f465ee2b08edb974899c2029e6c8067"
82110
},
83111
"0_deploy-with-remix": {
84112
"title": "Deploying a smart contract using Remix",
@@ -106,9 +134,9 @@
106134
],
107135
"difficulty": "beginner",
108136
"displayed_sidebar": null,
109-
"last_updated": "Aug 9, 2024",
137+
"last_updated": "Feb 6, 2025",
110138
"duration": "18 min read",
111-
"checksum": "0988226936a6179a48ef69db917e8a8d01f3a99db85e92c8985461dc35572d9a"
139+
"checksum": "51a373b0edbcf28503e0674e5d7b3e286095bf9b24e68575314f8eca3b864d74"
112140
},
113141
"0_deploy-with-tenderly": {
114142
"title": "Deploying a smart contract using Tenderly",
@@ -137,9 +165,9 @@
137165
],
138166
"difficulty": "beginner",
139167
"displayed_sidebar": null,
140-
"last_updated": "Jul 11, 2024",
168+
"last_updated": "Feb 6, 2025",
141169
"duration": "19 min read",
142-
"checksum": "6b93f84f6431fcf064adbb8b51ee2fb162a97516d4fbac2f982af1eddba87b6b"
170+
"checksum": "e1d5cda5b9c402023c6c5f4ab5cd47636ba01880eb3027f44e6bccca5d8fbbf8"
143171
},
144172
"0_deploy-with-thirdweb": {
145173
"title": "Deploying a smart contract using thirdweb",
@@ -200,9 +228,9 @@
200228
"difficulty": "easy",
201229
"hide_table_of_contents": false,
202230
"displayed_sidebar": null,
203-
"last_updated": "Aug 14, 2024",
231+
"last_updated": "Feb 6, 2025",
204232
"duration": "27 min read",
205-
"checksum": "39df303029b9cfd8a5efe33a3c4a6280dd25f4d7554553fcfaf0904b0c72bd21"
233+
"checksum": "d5fae24ccf951790ee64ed24104ec92d63f557b4fbfda73b6df7816d6c4213ea"
206234
},
207235
"0_intro-to-providers": {
208236
"title": "Introduction to Providers",
@@ -251,9 +279,9 @@
251279
"difficulty": "beginner",
252280
"hide_table_of_contents": false,
253281
"displayed_sidebar": null,
254-
"last_updated": "Sep 12, 2024",
282+
"last_updated": "Feb 6, 2025",
255283
"duration": "21 min read",
256-
"checksum": "774c94bba584693d64a3db2ec4da3554ac5bc69b54956874d78d0abdd6701c62"
284+
"checksum": "e8ad9f260741d1bad609de2c417d0ab29b1cdba6fdf71660249f6bae1477f120"
257285
},
258286
"0_run-a-base-node": {
259287
"title": "Running a Base Node",
@@ -279,9 +307,9 @@
279307
],
280308
"difficulty": "beginner",
281309
"displayed_sidebar": null,
282-
"last_updated": "Dec 6, 2024",
310+
"last_updated": "Feb 6, 2025",
283311
"duration": "7 min read",
284-
"checksum": "f54045db529b60ed18d47eea24b283da5620dc5e8e2fb39015daef16b5baa48a"
312+
"checksum": "5fab200cf9f312d01648ebf0f508c9eb9dfa4f02fbb770dccb502cb7a0e90a1c"
285313
},
286314
"1_10_farcaster-frames-hyperframes": {
287315
"title": "Farcaster Frames: Building HyperFrames",
@@ -331,9 +359,9 @@
331359
"difficulty": "intermediate",
332360
"hide_table_of_contents": false,
333361
"displayed_sidebar": null,
334-
"last_updated": "Aug 14, 2024",
362+
"last_updated": "Feb 6, 2025",
335363
"duration": "22 min read",
336-
"checksum": "7ec4be15487c878540156a35cc0375aa1ca6f90f6cbfc412bb0604067a2d06d6"
364+
"checksum": "88baf06914053c3358e53eeabae01e2c60f74628eae9944156652d2ab447b4a8"
337365
},
338366
"1_2_smart-wallet-and-eoa-with-onchainkit": {
339367
"title": "Use the Coinbase Smart Wallet and EOAs with OnchainKit",
@@ -437,9 +465,9 @@
437465
"difficulty": "beginner",
438466
"hide_table_of_contents": false,
439467
"displayed_sidebar": null,
440-
"last_updated": "Aug 14, 2024",
468+
"last_updated": "Feb 6, 2025",
441469
"duration": "23 min read",
442-
"checksum": "a78a3c220c1c4ee26a025f81eb6ec490d48be76db44ae959b57f30a220e7d799"
470+
"checksum": "88b5e90ac17455267881a0181c6e360bf908efd75e80e0d0999e5aabf9ed7416"
443471
},
444472
"1_5_farcaster-frames-nocode-minting": {
445473
"title": "Farcaster Frames: Building a no-code minting Frame",
@@ -586,6 +614,29 @@
586614
"duration": "6 min read",
587615
"checksum": "6f687231958dc79d5264bcfeadfdb5704b860a7653d788491bdf4c8c41a0e0d3"
588616
},
617+
"1_smart-wallet-spend-permissions": {
618+
"title": "Create Onchain Subscription Payments with Spend Permissions",
619+
"slug": "/create-subscription-payments-with-spend-permissions",
620+
"description": "Implement a smart wallet signer for a subscription payment application.",
621+
"author": "hughescoin",
622+
"keywords": [
623+
"smart wallet",
624+
"onchain",
625+
"spend permissions",
626+
"smart wallet",
627+
"account abstraction"
628+
],
629+
"tags": [
630+
"frontend",
631+
"account abstraction"
632+
],
633+
"difficulty": "medium",
634+
"hide_table_of_contents": false,
635+
"displayed_sidebar": null,
636+
"last_updated": "Feb 6, 2025",
637+
"duration": "15 min read",
638+
"checksum": "f73fd21a59033f243172fc120fb3ee456c0063509e5acb6c610bab92669c56ad"
639+
},
589640
"1_verify-contract-with-basescan": {
590641
"title": "Verify a Smart Contract using Basescan API",
591642
"slug": "/verify-smart-contract-using-basescan",
@@ -603,9 +654,9 @@
603654
"tags": [
604655
"smart contracts"
605656
],
606-
"last_updated": "Sep 12, 2024",
657+
"last_updated": "Feb 6, 2025",
607658
"duration": "12 min read",
608-
"checksum": "c39c756f2f8f9940b0a041d5212d868f82aa0f949f11742d3fffedd37a5d2b35"
659+
"checksum": "81a6956e7124a78de64f9f5363580ddd5fb7563cada84c9981157594958c45bd"
609660
},
610661
"2_1_simple-onchain-nfts": {
611662
"title": "Simple Onchain NFTs",
@@ -632,9 +683,9 @@
632683
"difficulty": "easy",
633684
"hide_table_of_contents": false,
634685
"displayed_sidebar": null,
635-
"last_updated": "Aug 14, 2024",
686+
"last_updated": "Feb 6, 2025",
636687
"duration": "26 min read",
637-
"checksum": "ac2dc8225de421e3718eb14a2854be1d524132c5f4e1fe9f3e0f855515d68a3c"
688+
"checksum": "5b8b1179209e4dd292b9daac5ebbbcc106f58708c4741f946067ee9e5726a2a1"
638689
},
639690
"2_2_complex-onchain-nfts": {
640691
"title": "Complex Onchain NFTs",
@@ -773,9 +824,9 @@
773824
"difficulty": "intermediate",
774825
"hide_table_of_contents": false,
775826
"displayed_sidebar": null,
776-
"last_updated": "Sep 26, 2024",
827+
"last_updated": "Feb 6, 2025",
777828
"duration": "14 min read",
778-
"checksum": "28f843ebc47bc9d69b6bf040a6ec3d1b92237e78a462121d74ff70ab64d66018"
829+
"checksum": "b0ff9731c71720e9c60d8715387c402ce481177d1d48ff625cb098e8120f8626"
779830
},
780831
"2_email-campaign-with-resend": {
781832
"title": "Create Email Marketing Campaigns Onchain using Coinbase Smart Wallet + Resend",
@@ -794,9 +845,9 @@
794845
],
795846
"difficulty": "beginner",
796847
"displayed_sidebar": null,
797-
"last_updated": "Sep 12, 2024",
848+
"last_updated": "Feb 6, 2025",
798849
"duration": "21 min read",
799-
"checksum": "e04c640da09b69b49d92c792d7cc6ddfddbcbee6facc44de85690c73da1f3aeb"
850+
"checksum": "8dc4ead004b163995712a5fe9563855f45bb7deb01d5a8f2c478ec31a914e8fe"
800851
},
801852
"2_event-gate-nouns": {
802853
"title": "Gate IRL Events with Nouns",
@@ -845,9 +896,9 @@
845896
"difficulty": "intermediate",
846897
"hide_table_of_contents": false,
847898
"displayed_sidebar": null,
848-
"last_updated": "Aug 13, 2024",
899+
"last_updated": "Feb 6, 2025",
849900
"duration": "18 min read",
850-
"checksum": "e20b430c2b1696b473625584d654f4a60e313c102127730553ab75f0bb54c568"
901+
"checksum": "13a921259d94befc5320549482f1ba7789c3945049ce4485e3c1577dc3004601"
851902
},
852903
"2_ock-checkout-tutorial": {
853904
"title": "Build a eCommerce App using Coinbase Commerce and OnchainKit",
@@ -878,7 +929,7 @@
878929
"2_ock-fund-tutorial": {
879930
"title": "Build a Smart Wallet Funding app with OnchainKit",
880931
"slug": "/build-smart-wallet-funding-app",
881-
"description": "Learn how to create a app that detects if a smart wallet has ETH and prompts users to add funds if needed.",
932+
"description": "Learn how to create an app that detects if a smart wallet has ETH and prompts users to add funds if needed.",
882933
"author": "hughescoin",
883934
"keywords": [
884935
"Account Abstraction",
@@ -898,9 +949,9 @@
898949
],
899950
"difficulty": "medium",
900951
"displayed_sidebar": null,
901-
"last_updated": "Dec 6, 2024",
952+
"last_updated": "Feb 6, 2025",
902953
"duration": "8 min read",
903-
"checksum": "7c0f5e6d29bac8f14d6bc3f169994b35553e2076541a6be37d90d70f15d6406c"
954+
"checksum": "f5ad128bad310692e6e8e764b8ec9e23b5edd86a72eacfca3ee59d04720b727f"
904955
},
905956
"2_paymaster-erc20-gas-payments": {
906957
"title": "Enable ERC-20 Gas Payments with Coinbase Paymaster",
@@ -950,9 +1001,9 @@
9501001
],
9511002
"difficulty": "beginner",
9521003
"displayed_sidebar": null,
953-
"last_updated": "Dec 6, 2024",
1004+
"last_updated": "Feb 6, 2025",
9541005
"duration": "15 min read",
955-
"checksum": "c3637099bddcc48e1480b60b3bf560c1a6ee901b8ed7bf598e8bf8d26cb23200"
1006+
"checksum": "ad0d59700325fbd55cb6690ccb747efefe4347d3188489c0f30917b396a42721"
9561007
},
9571008
"4_account-abstraction-with-biconomy": {
9581009
"title": "Account Abstraction on Base using Biconomy",
@@ -1031,9 +1082,9 @@
10311082
"difficulty": "intermediate",
10321083
"hide_table_of_contents": false,
10331084
"displayed_sidebar": null,
1034-
"last_updated": "Sep 12, 2024",
1085+
"last_updated": "Feb 6, 2025",
10351086
"duration": "46 min read",
1036-
"checksum": "aabfa2f90ea76b3e76b29d22f15262c84734e21d657e27ebc81b09f7f23b142d"
1087+
"checksum": "3e7eb3dbdfc8806245b9f0bf04a184688127fcff3b9608dd13d946c91af67837"
10371088
},
10381089
"4_hardhat-debugging": {
10391090
"title": "Hardhat: Debugging smart contracts",
@@ -1134,9 +1185,9 @@
11341185
"difficulty": "beginner",
11351186
"hide_table_of_contents": false,
11361187
"displayed_sidebar": null,
1137-
"last_updated": "Jul 19, 2024",
1188+
"last_updated": "Feb 6, 2025",
11381189
"duration": "9 min read",
1139-
"checksum": "91362e14b5f94b0bac604a0b17944fb8b41658f3e3b4c79510ea514f28f5d8d3"
1190+
"checksum": "7d5171f1aa6f16f640900e9b21ee6629ad2de0907fdf4c656cc3f3c0d2a2d694"
11401191
},
11411192
"4_intro-to-foundry-setup": {
11421193
"title": "Foundry: Setting up Foundry with Base",
@@ -1209,9 +1260,9 @@
12091260
"difficulty": "easy",
12101261
"hide_table_of_contents": false,
12111262
"displayed_sidebar": null,
1212-
"last_updated": "Sep 26, 2024",
1263+
"last_updated": "Feb 6, 2025",
12131264
"duration": "5 min read",
1214-
"checksum": "17b2137efd031251de2beb3683b5c75006b8723bff189e59d655d86f5abc296d"
1265+
"checksum": "e8785b5a482cc64f2aa4f878a60ab0cdfaa321bc2d20d6ad57ff60d9782df88a"
12151266
},
12161267
"5_cross-chain-with-ccip": {
12171268
"title": "Sending messages and tokens from Base to other chains using Chainlink CCIP",
@@ -1234,9 +1285,9 @@
12341285
],
12351286
"difficulty": "intermediate",
12361287
"displayed_sidebar": null,
1237-
"last_updated": "Aug 14, 2024",
1288+
"last_updated": "Feb 6, 2025",
12381289
"duration": "32 min read",
1239-
"checksum": "a7cd33af8c6f1d4eb7853e2e348d956ce07e923923be0376484316c597733e7b"
1290+
"checksum": "05673c8e84071580e5352570b4292ee0e742b9f604d588bc709db08c9b7782d1"
12401291
},
12411292
"5_cross-chain-with-layerzero": {
12421293
"title": "Sending messages from Base to other chains using LayerZero V2",
@@ -1259,9 +1310,9 @@
12591310
],
12601311
"difficulty": "intermediate",
12611312
"displayed_sidebar": null,
1262-
"last_updated": "Dec 6, 2024",
1313+
"last_updated": "Feb 6, 2025",
12631314
"duration": "34 min read",
1264-
"checksum": "af94b371cf5c3798b44ea74a21184bf81ca97ab2c12d6194c7ff6093e164ec6f"
1315+
"checksum": "b15bcf927d3a6d70131a7fe7e118b7810fa4ec3b34bbacf0db861b85238c5ce7"
12651316
},
12661317
"5_deploy-with-fleek": {
12671318
"title": "Deploy an Onchain App with Fleek",
@@ -1282,9 +1333,9 @@
12821333
"hide_table_of_contents": false,
12831334
"displayed_sidebar": null,
12841335
"image": "https://docs.base.org/img/base-learn-open-graph.png",
1285-
"last_updated": "Aug 14, 2024",
1336+
"last_updated": "Feb 6, 2025",
12861337
"duration": "9 min read",
1287-
"checksum": "d9302891627f1761507422bf35c361a30b343e77cb4d3981888ab70eb4fbd0ac"
1338+
"checksum": "4a06b8e349114fbc14b558e4721dee2077c8085b19dfcfeca4dc9a516a147ccf"
12881339
},
12891340
"5_farcaster-to-openframe": {
12901341
"title": "Convert Farcaster Frame to Open Frame using OnchainKit",
@@ -1401,9 +1452,9 @@
14011452
],
14021453
"difficulty": "intermediate",
14031454
"displayed_sidebar": null,
1404-
"last_updated": "Aug 14, 2024",
1455+
"last_updated": "Feb 6, 2025",
14051456
"duration": "19 min read",
1406-
"checksum": "46d96117b03b9225493b382afd3b8f5800001063296cb34eb48269481c7d15c6"
1457+
"checksum": "f1d856f7c75b125a4da32e33481b2b2745a064a39f2044887d0af25814dd08c3"
14071458
},
14081459
"5_shopify-storefront-commerce": {
14091460
"title": "Deploy a Shopify Storefront with Coinbase Commerce",

0 commit comments

Comments
 (0)