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:
+2
-2
@@ -66,8 +66,8 @@ PCM_API_SECRET=replace-me
|
||||
PCM_WEBHOOK_SECRETS=replace-me,replace-me-2
|
||||
# PCM_WEBHOOK_SECRET=replace-me # optional single-secret alias
|
||||
|
||||
# JSON return address for postcard orders
|
||||
PCM_RETURN_ADDRESS={"firstName":"Monica","lastName":"Dhillon","address":"replace-me","city":"replace-me","state":"IL","zipCode":"replace-me"}
|
||||
# JSON return address for postcard orders (quote so compose keeps commas)
|
||||
PCM_RETURN_ADDRESS='{"firstName":"Monica","lastName":"Dhillon","address":"replace-me","city":"replace-me","state":"IL","zipCode":"replace-me"}'
|
||||
# LOB_API_KEY= # only if POSTCARD_PROVIDER=lob
|
||||
# CLICK2MAIL_API_KEY=
|
||||
# POSTGRID_API_KEY=
|
||||
|
||||
Reference in New Issue
Block a user