Skip to content

Commit 2c58aee

Browse files
committed
readme upadate
1 parent 2cce108 commit 2c58aee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ In Patch, orders represent a purchase of carbon offsets or negative emissions by
5353
mass = 1_000_000 # Pass in the mass in grams (i.e. 1 metric tonne)
5454
Patch::Order.create_order(mass_g: mass)
5555

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+
5660
## You can also specify a project-id field (optional) to be used instead of the preferred one
5761
project_id = 'pro_test_1234' # Pass in the project's ID
5862
Patch::Order.create_order(mass_g: mass, project_id: project_id)

0 commit comments

Comments
 (0)