Skip to content

chore: use es6 syntax to match public docs #59

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 1 commit into from
Jul 24, 2023

Conversation

gregjopa
Copy link
Contributor

This PR updates the Standard Integration guide code snippets to match whats on developer.paypal.com.

There are 3 changes:

  1. Prefer method definitions for a shorter syntax
  2. Prefer template strings for concatenating strings with variables.
  3. Use uppercase POST for fetch() calls to be spec compliant: https://fetch.spec.whatwg.org/#methods

Note that the Advanced Integration guide should be updated to follow these same standards.

@gregjopa gregjopa merged commit 0806635 into main Jul 24, 2023
@gregjopa gregjopa deleted the standard-guide-match-public-docs branch July 24, 2023 14:49
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.

1 participant