Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix payment example json in API docs (#11357)

Virginia Nguyen5b8d53a5d05e
diff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yaml
index b3a1b8935c..5b3ada26de 100644
--- a/api/docs/v2/storefront/index.yaml
+++ b/api/docs/v2/storefront/index.yaml
@@ -934,18 +934,16 @@ paths:
"order": {
"payments_attributes": [
{
- "payment_method_id": "1"
+ "payment_method_id": "1",
+ "source_attributes": {
+ "number": "4111111111111111",
+ "month": "10",
+ "year": "2022",
+ "verification_value": "123",
+ "name": "John Doe"
+ }
}
]
- },
- "payment_source": {
- 1: {
- "number": "4111111111111111",
- "month": "01",
- "year": "2022",
- "verification_value": "123",
- "name": "John Doe"
- }
}
}
```