PHP Car RentalUser Manual Visit PHP Car Rental →
Admin Panel

Payment settings

Payments let you earn money from car owners who post on your platform. All settings are on one page with four tabs.

Payment settings page with tabs for paid listings, Stripe, PayPal and bank
Payments, Payment settings

Tab: Paid listings

SettingWhat it does
Charge for publishing carsOn: users choose a package and pay before the car goes live. Off: publishing is free.
Publish listings automaticallyOff: every new listing waits for your approval in Managing cars.
Days online (free listings)How long a free listing stays online.
Maximum photosPhotos allowed when no package is chosen.
Currency codeISO code used by Stripe and PayPal: USD, EUR, GBP ...
Currency symbol and positionHow prices look on the website: $50 or 50 €.

Tab: Stripe

  1. In your Stripe dashboard open Developers → API keys and copy the secret key (sk_...).
  2. Paste it here, set the mode and tick Accept payments with Stripe.
  3. Recommended: add a webhook in Developers → Webhooks pointing to https://your-site.com/include/stripe_webhook.php with the event checkout.session.completed, and paste its signing secret (whsec_...) here.

Customers pay on the hosted Stripe Checkout page, so card numbers never reach your server. The return page and the webhook both verify the payment with Stripe.

Tab: PayPal

  1. Create a REST app on developer.paypal.com and copy the Client ID and Secret.
  2. Choose Sandbox for tests or Live, paste the keys and tick Accept payments with PayPal.

The script uses the PayPal Orders v2 API. When the customer returns, the order is captured and the amount and currency are checked before the listing is published.

Tab: Bank transfer

Enter the account holder, bank name, IBAN or account number and instructions. They are displayed to the user after choosing this method. The payment stays pending until you mark it as paid (Packages and transactions).

Saved secret keys are never shown again. Leave a key field empty to keep the stored value. Test with Stripe test keys or PayPal Sandbox before switching to live.

Use HTTPS on your website when you accept payments.

Last updated