Skip to content

Commit d4ea5c3

Browse files
committed
Add &vault=true to SDK script
1 parent 8b9ba5d commit d4ea5c3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

save-payment-method/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This folder contains example code for a PayPal Save Payment Method integration using both the JS SDK and Node.js to complete transactions with the PayPal REST API.
44

5+
[View the Documentation](https://developer.paypal.com/docs/checkout/save-payment-methods/during-purchase/js-sdk/paypal/)
6+
57
## Instructions
68

79
1. [Create an application](https://developer.paypal.com/dashboard/applications/sandbox/create)

save-payment-method/server/views/checkout.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div id="paypal-button-container"></div>
1010
<p id="result-message"></p>
1111
<script
12-
src="https://www.paypal.com/sdk/js?client-id=<%= clientId %>"
12+
src="https://www.paypal.com/sdk/js?client-id=<%= clientId %>&vault=true"
1313
data-user-id-token="<%= userIdToken %>"
1414
></script>
1515
<script src="app.js"></script>

0 commit comments

Comments
 (0)