Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8230999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:19:38+00:00 2026-06-07T17:19:38+00:00

I have been making a hotel booking software that calculates, for given dates and

  • 0

I have been making a hotel booking software that calculates, for given dates and specifications, a price for staying at a hotel. I’m looking to use Paypal for accepting the payment, but having browsed their website, can’t find a solution that seems to be compatible with this.

Since the price is dynamic, it’s not like a normal one-price product which Paypal seems to handle best. I need a method where I can send the cost to Paypal, have Paypal charge the customer, then have Paypal send a confirmation back to the website that the payment has processed correctly at which point the booking is complete.

I presume Paypal is capable of handling a dynamically priced item like this. Could anyone point me in the direction of where I should be looking?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:19:39+00:00Added an answer on June 7, 2026 at 5:19 pm

    I just completed this process in my current website: bpremium.com, basically I built a webservice api for the payment process where it can send commands over javascript until it gets to the last stage, which is where you build the form you send to paypal.

    in order to record the payment, you setup another webservice for the notify url and this will catch all the $_POST data and process it into your database.

    <form id="form-payment-paypal" action="https://www.paypal.com/cgi-bin/webscr">
    <input type="hidden" name="cmd" value="_xclick" />
    <input type="hidden" name="bn" value="PP-BuyNowBF" />
    <input type="hidden" name="charset" value="utf-8" />
    <input type="hidden" name="business" value="YOUR_ACCOUNT_EMAIL_ADDRESS" />
    <input type="hidden" name="item_name" value="THE PRODUCT NAME" />
    <input type="hidden" name="item_number" value="YOUR_RECOGNISABLE_SALE_ID?>" />
    <input type="hidden" name="currency_code" value="EUR" />
    <input type="hidden" name="lc" value="THE LANGUAGE CODE: es_ES, en_GB, etc" />
    <input type="hidden" name="amount" value="<?=$amount+($amount*0.04)?>" />
    <input type="hidden" name="return" value="/payment/complete/" />
    <input type="hidden" name="notify_url" value="/webservice/payment/notify/paypal/" />
    
    <p class="ac span300">
        <input  type="submit" class="form-style-bt" value="PAY" />
    </p>
    </form>
    

    that is basically what we use, you can see we put the $amount + $amount*0.04 because you needed to add a 4% surcharge in spain, where I am. perhaps thats different in your code.

    I think the rest of it is pretty self explanatory.

    on the /webservice/ url, you need to record everything into your database, it sends you the information whether it succeeded or failed, but it’s not a call to your website, you won’t see this page, it’s a “back channel” call to your website, so it’s not your landing page, it’s simple the url paypal sends all the raw data to, you’re supposed to record it, process it and perhaps send out emails, etc.

    then if the user returns to your website, you land on the /payment/complete page, so this page could show the result, whether everything is ok, or something failed.

    hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a game that needs a crosshair. I have been playing with
I have been making a program that creates multiple CSV's from another source CSV
I have been making use of the WCF Authentication Service in ASP.Net but I
I have been making plans to create a site that would contain several different
I have been tasked with making some edits to a legacy system that is
Good afternoon. I have been making a small openGL based app for android that
I have been thinking about making a helper method that shortens internal links. For
I have been making extensive use of XMLHttpRequests and JSON to fetch from a
I have been making good use of custom properties withing custom controls. Is there
I have been making a little program that needs to read a list of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.