Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>OK here's what happens if JavaScript is turned off. It looks like BaseCamp chose to send the credit card via AJAX, buto also handle the situation where JavaScript is disabled and the whole form gets transmitted to them - including non payment fields.</p> <p>Thanks <a href="http://www.fiddler2.com/fiddler2/" rel="noreferrer">Fiddler</a>, and BaseCamp.</p> <ul> <li><p>User fills out form containing both payment data and anything else you might want on an HTML form for signup, shipping, shopping cart etc.</p></li> <li><p>Form is submitted to <a href="https://secure.braintreepaymentgateway.com/api/transact.php" rel="noreferrer">https://secure.braintreepaymentgateway.com/api/transact.php</a></p></li> <li><p>BrainTree does its magic and adds the credit card to the vault, and passes back all information to your page. it </p></li> </ul> <p>It is doing this by actually calling a URL which you must then handle however you're handling it.</p> <pre><code>https://signup.37signals.com/basecamp/plus/signup?transparent_redirect_complete=1 &amp;signup[page]= &amp;signup[source]=basecamphq.com &amp;signup[data][first_name]=FRED &amp;signup[data][last_name]=FLINTSTONE &amp;signup[data][email_address]=FRED@BEDROCK.COM &amp;signup[data][name]=FRED &amp;signup[data][time_zone_id]=Eastern%20Time%20%28US%20%26%20Canada%29 &amp;signup[data][identity_url]= &amp;signup[data][user_name]=BAMBAM &amp;signup[data][password]=pebbles123 &amp;signup[data][confirm_password]=pebbles123 &amp;signup[data][subdomain]=bedrock.com &amp;signup[referrer_code]= &amp;signup[coupon_code]= &amp;signup[accepts_eula]=1 &amp;response=1 &amp;responsetext=Customer+Added &amp;authcode= &amp;transactionid= &amp;avsresponse= &amp;cvvresponse= &amp;orderid= &amp;type= &amp;response_code=100 &amp;customer_vault_id=1253608313 &amp;username=865251 &amp;time=20091129014038 &amp;amount= &amp;hash=63209ad25560f9a961525d65b63e31be </code></pre> <p>Presumably a response code of 100 means 'bad credit card' since I put in a fake CC number to test.</p> <p>4) You're free to redisplay the page however you want.</p> <p>Outstanding question: Hopefully the last 4 digits of the card comes back if the transaction is successful.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload