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

  • Home
  • SEARCH
  • 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 7564013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:48:33+00:00 2026-05-30T13:48:33+00:00

<form action=https://www.sandbox.paypal.com/cgi-bin/webscr method=post> <input type=hidden name=cmd value=_s-xclick> <input type=hidden name=hosted_button_id value=YYHZM9FTBZQGW> <input type=hidden name=amount

  • 0
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="YYHZM9FTBZQGW">
<input type="hidden" name="amount" value="20.00">
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif"    border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

this is a paypal sandbox button. all i want to do is to post the TOTAL price of all the product the user buy in my website.

I created a button with nothing to post because basically i want to post dynamically in the future using a php variable so I think I don’t need to set up the item price, name, quantity in the sandbox create button features. how am i suppose to do that.

paypal sandbox

this is the output. I want the item price to be not editable same as with description and quantity

  • 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-05-30T13:48:35+00:00Added an answer on May 30, 2026 at 1:48 pm

    The reason you can’t override the amount dynamically, is because you have a so-called ‘PayPal hosted button’.
    With a hosted button, the amount is stored on PayPal’s side and can’t be overwritten with the ‘amount’ variable.
    You’ll either want to use a non-hosted button, or use the BMUpdateButton API call to dynamically update the button’s amount.

    An example request for BMUpdateButton would look as follows:

    USER=Your API username
    PWD=Your API password
    SIGNATURE=Your API signature
    VERSION=82.0
    HOSTEDUBTTONID=The value of <input type="hidden" name="hosted_button_id" value="">
    BUTTONTYPE=The type of button. E.g. BUYNOW
    BUTTONCODE=The type of code you want to get back. E.g. HOSTED
    L_BUTTONVAR0=amount=The new amount with a period as separator
    L_BUTTONVAR1=item_name=Optional: a new item name if you wish
    

    Similary, you could also use the BMCreateButton API to create a new button, or use the BMButtonSearch API to search through a list of all your stored hosted buttons (to find the hosted_button_id of your button automatically, for example)

    The reason to use a hosted button is because it’s more secure. A non-hosted, unencrypted button would basically leave the amounts open to manipulation. Fraudulent transactions waiting to happen.

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

Sidebar

Related Questions

Here's the code for my Paypal button: <form action=https://www.sandbox.paypal.com/cgi-bin/webscr method=post> <input type=hidden name=cmd value=_xclick>
I have following HTML form <form action=https://sandbox.paypal.com/cgi-bin/webscr method=post id=paypalpost name=paypalpost> <input type=hidden name=rm value=2/>
I have a html form like this : <form action=https://www.123.com/cgi-bin/action method=post> <input type=hidden name=item_name
I have the following post button that i use for paypal transactions: <form action=https://www.sandbox.paypal.com/cgi-bin/webscr
I have a form like this: <form id=loginCompact action=https://externalsite... name=sportsbook method=post onsubmit=createCookie('BRLOG', document.sportsbook.username.value, 1)>
I have an action handling a form post, but I want to make sure
I am trying to login to this website https://www.virginmobile.com.au programatically (on the right there
I have a form action that needs to have its value set from a
i have form action file in another directory but some file send to this
it it possible to get the form action of a GET form on submit

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.