Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API-644] Add optional zip code to checkout cart #17

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

opsb
Copy link
Contributor

@opsb opsb commented Jan 12, 2023

Facilitates https://github.com/Boulevard/abundant-booking-flow/pull/73

Adds address_postal_code as an optional property on the addCardPaymentMethod mutation. Vault is already familiar with the property and will use it during processing if available.

@opsb opsb temporarily deployed to integration-sandbox January 12, 2023 09:33 — with GitHub Actions Inactive
@opsb opsb temporarily deployed to integration-sandbox January 12, 2023 09:39 — with GitHub Actions Inactive
@opsb opsb temporarily deployed to integration-sandbox January 12, 2023 09:42 — with GitHub Actions Inactive
@opsb opsb temporarily deployed to integration-sandbox January 12, 2023 09:43 — with GitHub Actions Inactive
@@ -17,7 +17,7 @@ import { Location } from "../src/locations";
import { createHmac } from "crypto";

const businessId = "63b60ecb-6d1e-4bb6-87ad-3cb52ffe09b4";
const apiKey = process.env.SANDBOX_API_KEY;
const apiKey = process.env.SANDBOX_API_KEY!;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never seen process.env with a bang, does that make it required?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does, kinda, it unfortunately only works at the type level so won't actual throw a runtime exception.

@opsb opsb temporarily deployed to integration-sandbox January 12, 2023 09:47 — with GitHub Actions Inactive
@opsb opsb force-pushed the api-644/add-zip-code-to-checkout branch from 33ca287 to bf05859 Compare January 12, 2023 09:52
@opsb opsb temporarily deployed to integration-sandbox January 12, 2023 09:52 — with GitHub Actions Inactive
@opsb opsb merged commit d071761 into master Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants