Skip to content

Commit 21f0d4b

Browse files
authored
fix: update eligibility param name to currencyCode (#41)
1 parent 15e825c commit 21f0d4b

File tree

2 files changed

+2
-2
lines changed
  • client
    • oneTimePayment/html/src/recommended
    • savePayment/html/src/recommended

2 files changed

+2
-2
lines changed

client/oneTimePayment/html/src/recommended/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function onPayPalLoaded() {
88
});
99

1010
const paymentMethods = await sdkInstance.findEligibleMethods({
11-
currency: "USD",
11+
currencyCode: "USD",
1212
});
1313

1414
if (paymentMethods.isEligible("paypal")) {

client/savePayment/html/src/recommended/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function onPayPalLoaded() {
88
});
99

1010
const paymentMethods = await sdkInstance.findEligibleMethods({
11-
currency: "USD",
11+
currencyCode: "USD",
1212
});
1313

1414
if (paymentMethods.isEligible("paypal")) {

0 commit comments

Comments
 (0)