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

Update script.js #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ let handle_click = (event) => {
}
document.addEventListener("click", handle_click);
const paypal_sdk_url = "https://www.paypal.com/sdk/js";
const client_id = "REPLACE_WITH_YOUR_CLIENT_ID";
const client_id = "AV70EpZosHjxt4GTU3FQMgmnBXjtJ2rHr4QDmlkVxy0EgRJlrqYibC4znkxfdj65DoyqCgZpqXYyGG4J";
const currency = "USD";
const intent = "capture";

Expand Down Expand Up @@ -176,7 +176,7 @@ is_user_logged_in()
document.querySelector("#card-form").querySelector("input[type='submit']").setAttribute("disabled", "");
document.querySelector("#card-form").querySelector("input[type='submit']").value = "Loading...";
card_fields
.submit(
.submit()
//Customer Data BEGIN
//This wasn't part of the video guide originally, but I've included it here
//So you can reference how you could send customer data, which may
Expand Down Expand Up @@ -231,4 +231,4 @@ is_user_logged_in()
})
.catch((error) => {
reset_purchase_button();
});
});