Require a complete PCM return address before placing orders.
Empty PCM_RETURN_ADDRESS was sending SITE_NAME as firstName with blank street fields, which PCM rejects with 400; validate early and wire PCM env through compose.
This commit is contained in:
+3
-2
@@ -57,8 +57,9 @@ PCM_API_SECRET=
|
||||
# Paste all of them comma-separated (also accepts single PCM_WEBHOOK_SECRET=).
|
||||
PCM_WEBHOOK_SECRETS=
|
||||
# PCM_WEBHOOK_SECRET=
|
||||
# Return address on every postcard order (JSON). Example:
|
||||
# PCM_RETURN_ADDRESS={"firstName":"Monica","lastName":"Dhillon","address":"123 Main St","city":"Naperville","state":"IL","zipCode":"60540"}
|
||||
# Required return address on every postcard order.
|
||||
# Quote the JSON (compose/shell break on bare {…, …}).
|
||||
# PCM_RETURN_ADDRESS='{"firstName":"Monica","lastName":"Dhillon","address":"123 Main St","city":"Naperville","state":"IL","zipCode":"60540"}'
|
||||
PCM_RETURN_ADDRESS=
|
||||
# Or set fields individually if JSON is empty:
|
||||
# PCM_RETURN_LINE1=
|
||||
|
||||
Reference in New Issue
Block a user