Skip to content

chore(standard-integration): update fetch calls to match public docs #23

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

Merged
merged 2 commits into from
Feb 16, 2023

Conversation

gregjopa
Copy link
Contributor

This PR makes the following changes to the standard-integration example:

  1. Updates the api paths to match the docs(/my-server/create-paypal-order and /my-server/capture-paypal-order)
  2. Updates the fetch calls to set the content-type as application/json
  3. Adds the built in express.json() middleware to parse the post body.

@gregjopa gregjopa requested a review from westeezy February 16, 2023 18:48
@gregjopa gregjopa merged commit 4ce5e89 into main Feb 16, 2023
@gregjopa gregjopa deleted the match-public-docs branch February 16, 2023 20:13
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