Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Commit aaec41a

Browse files
authored
Merge pull request #11 from rkusa/patch-1
Update order json in README
2 parents a66f249 + 3fcac53 commit aaec41a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ commerce.order({
5050
shipping_address: {
5151
name: "Matt Biilmann",
5252
company: "netlify", // Optional
53-
address: "610 22nd Street",
53+
address1: "610 22nd Street",
5454
city: "San Francisco",
5555
state: "CA",
5656
country: "USA",
@@ -60,6 +60,7 @@ commerce.order({
6060
}).then(({cart, order}) => {
6161
return commerce.payment({
6262
// Get a token from Stripes button or a custom integration
63+
"provider": "stripe",
6364
"stripe_token": TOKEN_FROM_STRIPE_CC_FORM,
6465
// The commerce API will verify that the amount and order ID match
6566
"amount": cart.total.cents,

0 commit comments

Comments
 (0)