diff --git a/pass/routes/checkout/paypal.js b/pass/routes/checkout/paypal.js index 8bfd7a45c88bc9babb25f21f7f7c520a59499d78..909a0870f7f04a183ee3bb5ad23cae4c1d18182b 100644 --- a/pass/routes/checkout/paypal.js +++ b/pass/routes/checkout/paypal.js @@ -33,7 +33,6 @@ async function createOrder() { headers: { "Content-Type": "application/json", - Authorization: `Bearer ${accessToken}`, }, @@ -42,13 +41,25 @@ async function createOrder() { purchase_units: [ { + description: "Test Payment", amount: { - currency_code: "USD", + currency_code: "EUR", - value: "100.00", + value: "4.00", }, }, ], + payment_source: { + paypal: { + experience_context: { + payment_method_preference: "IMMEDIATE_PAYMENT_REQUIRED", + payment_method_selected: "PAYPAL", + user_action: "PAY_NOW", + brand_name: "EXAMPLE INC", + shipping_preference: "NO_SHIPPING", + }, + }, + }, }), });