We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cce108 commit 2c58aeeCopy full SHA for 2c58aee
1 file changed
README.md
@@ -53,6 +53,10 @@ In Patch, orders represent a purchase of carbon offsets or negative emissions by
53
mass = 1_000_000 # Pass in the mass in grams (i.e. 1 metric tonne)
54
Patch::Order.create_order(mass_g: mass)
55
56
+# Create an order with maximum total price
57
+total_price_cents_usd = 5_00 # Pass in the total price in cents (i.e. 5 dollars)
58
+Patch::Order.create_order(total_price_cents_usd: total_price_cents_usd)
59
+
60
## You can also specify a project-id field (optional) to be used instead of the preferred one
61
project_id = 'pro_test_1234' # Pass in the project's ID
62
Patch::Order.create_order(mass_g: mass, project_id: project_id)
0 commit comments