PayPal is the most recognised way to accept payments online across borders. A customer in another country can pay with their PayPal balance, a card, or their local bank — and you receive the money in your PayPal account without ever handling card details. For a developer selling to a global audience, it is often the simplest international payment option.
How it works: you create an order with PayPal's API, the customer approves it in PayPal's checkout (or in a button embedded on your page), and PayPal captures the payment and notifies your server with a webhook. The Orders API v2 is the current way to do this, and the sandbox environment lets you simulate buyers and sellers with test accounts before touching real money.
PayPal is a good fit for beginners because the sandbox is generous: you get a test business account and test buyer accounts, so you can run the full payment flow end to end without a card. The smart payment buttons are a few lines of JavaScript, and the dashboard shows every transaction, fee, and payout in one place.
A quick example — creating an order with the REST API:
curl -X POST https://api-m.sandbox.paypal.com/v2/checkout/orders \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{
"intent": "CAPTURE",
"purchase_units": [{
"amount": { "currency_code": "USD", "value": "9.99" }
}]
}'
The response contains an approval link — send the buyer there, and PayPal handles the rest.
Who is it for? Developers selling digital products, courses, or services to customers abroad; freelancers invoicing international clients; students building a store that needs to work outside one country.
Limits to know: PayPal's fees are higher than many local gateways, especially on cross-border payments and currency conversion. Accounts can be held or limited while PayPal reviews activity, which can freeze payouts at the worst time. And in India, receiving PayPal payments has extra rules — export paperwork and a purpose code — so read the local requirements before going live.
To start today: create a developer account, make a sandbox business account, create a test order, and approve it with the sandbox buyer account.
Top comments (0)