On this page
No Headings
Last updated: July 8, 2026
By default, money is paid to the application owner in their own account. The account receiving funds is known as the payee.
To specify a different payee when you create an order:
email_address or merchant_id of the account to receive the payment.async function createOrder() {
// Create accessToken using your clientID and clientSecret
// For the full stack example, please see the Standard Integration guide at
// https://developer.paypal.com/platforms/checkout/standard/integrate
const accessToken = "REPLACE_WITH_YOUR_ACCESS_TOKEN";
return fetch("https://api-m.sandbox.paypal.com/v2/checkout/orders", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${accessToken}`,
},
body: JSON.stringify({
intent: "CAPTURE",
purchase_units: [
{
amount: {
value: "15.00",
currency_code: "USD",
},
payee: {
email_address: "[email protected]",
},
},
],
}),
})
.then((response) => response.json())
.then((data) => console.log(data));
}