I am new to Typo3 development. I am using Typo3 version 6.2.0. I have created a custom extension using extension buider. Its working is basic and just register two values name and id.
Extension is showing a link to new registration but after that its is showing fluid+html tags on the page instead of showing rendered output(textbox and form).
Please help me solving this problem.
<form name="newTest" action="index.php?id=24&tx_tl1_t...<form name="newTest" action="index.php?id=24&tx_tl1_tl2%5Baction%5D=create&tx_tl1_tl2%5Bcontroller%5D=Test&cHash=b3050554aab196ddb3773dbb3eefda3c" method="post">
<input type="hidden" name="tx_tl1_tl2[__referrer][#extension]" value="Tl1" />
<input type="hidden" name="tx_tl1_tl2[__referrer][#vendor]" value="Cts" />
<input type="hidden" name="tx_tl1_tl2[__referrer][#controller]" value="Test" />
<input type="hidden" name="tx_tl1_tl2[__referrer][#action]" value="new" />
<input type="hidden" name="tx_tl1_tl2[__referrer][arguments]" value="YToyOntzOjY6ImFjdGlvbiI7czozOiJuZXciO3M6MTA6ImNvbnRyb2xsZXIiO3M6NDoiVGVzdCI7fQ==a98b3f0778be75a7fc4b7f2fbe9f541196f8c763" />
<input type="hidden" name="tx_tl1_tl2[__trustedProperties]" value="a:1:{s:7:"newTest";a:1:{s:8:"username";i:1;}}18e3421cc9d103c83147f40c4a539581aef5788e" />
Username
<input type="text" name="tx_tl1_tl2[newTest][username]" />
<input type="submit" name="" value="Create new" />
</form>
Related
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="business" value="dummy#example.com">
<input type="hidden" name="cmd" value="_xclick-auto-billing" /> <!-- _xclick-subscriptions works here -->
<input type="hidden" name="a3" value="1" />
<input type="hidden" name="p3" value="12" />
<input type="hidden" name="t3" value="M" />
<input type="hidden" name="src" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="submit" name="submit" />
<input type="hidden" value="PP-SubscriptionsBF" name="bn">
</form>
I was trying to find out what the differences are between _xclick-subscriptions and _xclick-auto-billing. Above form works when the cmd value is _xclick-subscriptions. However, when I replace it with _xclick-auto-billing, Paypal returns an error page saying "item amount" is incorrect. I check Paypal's documentation but there isn't much explanation or example about _xclick-auto-billing. So how should I use this cmd and what are the differences?
In general, auto-billing should not be used unless you are able to generate a sample auto billing button via https://www.paypal.com/buttons
When doing so, uncheck the option in section 2 to save the button at PayPal. When viewing the generated code, click the option to remove the code protection. Then you will have sample working HTML that you can adapt to your needs.
If you cannot create such a button, it is because your account does not support it. Subscriptions are much more widely supported and should be used instead, generally speaking.
Instead of the old-style Subscribe button, consider the new Smart Payment Buttons which use plans and products as a base and offer a much more modern checkout experience. See https://www.paypal.com/billing/plans
being a PP developer newbie, I used the PayPal documentation to set up this Business Starter integration:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="business" value="info#mybusiness.com" />
<input type="hidden" name="item_name_1" value="My product 1" />
<input type="hidden" name="amount_1" value="10" />
<input type="hidden" name="quantity_1" value="2" />
<input type="hidden" name="display" value="1" />
<input type="hidden" name="return" value="http://www.mybusiness.com/cgi-bin/gk.cgi?ppstatus=ppy" />
<input type="hidden" name="cancel_return" value="http://www.mybusiness.com//cgi-bin/gk.cgi?ppstatus=ppn" />
<input type="hidden" name="cbt" value="Back to MyBusiness" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="custom" value="MyID" />
<input name="submit" type="image" id="submit" src="../pics/b-pp_01.gif" width="200" height="30" border="0">
</form>
All I get after sending this form away is a blank page with the URL https://www.paypal.com/cgi-bin/webscr
Where did I go wrong?
Thanks for any help,
Emil
There are a few issues with your button (e.g. you don't specify a total amount; I don't think you are doing what you think you are doing with the custom field; etc.) but to start with: you are giving PayPal two different commands (cmd=_cart, cmd=_s_xclick), and likely neither of them is what you want. _cart is for using the PayPal cart, which is a little-used PayPal product where the cart is maintained by PayPal, not on your site. And _s-xclick is for secure, ie encrypted buttons, which you are not doing (your cart fields being plaintext in the form html).
Here's one overview of the button docs:
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
... that I hope can help, but ultimately get the reference guide for the particular product you are trying to use, specify only that cmd, and use only the field supported by that product. I also recommend using one of PayPal's (non-javascript) button generators to generate your first few buttons, thus guaranteeing that you are getting valid button html, and then modifying from there rather than trying to write from scratch. Helps get you on the right path.
I have different products in my site to sell.
The problem is that each time for new product i have to manually create a new form using paypal and implement it in site which takes a lot time.While purchase i need two information from customers their email and phone no. .So is there any way to do this by creating a non-hosted paypal form.Can we add text-fields in non-hosted paypal forms?
For Example:(below is non-hosted paypal form how can i add two text fields to it and get them show up in customers purchase detail in paypal)
<div style="width:300px;background-color: #FFFFFF">
<h2 style="text-align:center">
Type in title here</h2>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="paypal_form">
<h3 style="text-align:center">
Yummy Logo for $90</h3>
<p align="center">
<input type="submit" value="Buy" /></p>
<input name="cmd" type="hidden" value="_xclick" />
<input name="business" type="hidden" value="my_paypal_email#example.com" />
<input name="item_name" type="hidden" value="logo type x2" />
<input name="amount" type="hidden" value="2" />
<input name="no_shipping" type="hidden" value="1" />
<input name="no_note" type="hidden" value="0" />
<input name="cn" type="hidden" value="Client Comments:" />
<input name="return" type="hidden" value="http://example.com" />
<input name="cancel_return" type="hidden" value="http://example.com" />
<input name="rm" type="hidden" value="1" />
<input name="currency_code" type="hidden" value="USD" />
</form>
</div>
<p>
</p>
Check out HTML Variables for Filling Out PayPal Checkout Pages Automatically.
I have the following simple form:
<form id="MyForm" action="../webformmailer.php" method="post" >
<input type="hidden" name="subject" value="Submission" />
<input type="hidden" name="redirect" value="../sandbox/123/thanks.html" />
<input type="text" size="20" name="FirstName" />
<input type="text" size="20" name="LastName" />
<input type="text" size="20" name="email" />
<select name="comment">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
<input type="submit" name="submit" value="submit"/>
</form>
I am redirecting users to a simple 'thanks.html' page after they submit their information. This works well in all browsers except IE 8, which redirects users to the webformmailer.php or the action of the form.
Can anyone point me in the right direction?
Thanks
Inside your action script, process the request and then redirect to thanks.html:
header('Location: ../sandbox/123/thanks.html');
Update: since you don't have control over the action script, and all other browsers work exception IE8, then the problem must be in the way IE8 sends data to the server. Try set enctype="application/x-www-form-urlencoded" and see if it works.
I'm using the PayPal standard SUBSCRIBE button. The HTML looks something like the code-snippet below. The issue is that it appears FORM parameters a1/p1/t1, a3/p3/t3, src/sra, and any other advanced HTML variables for the PayPal SUBSCRIBE button cannot be overridden. That is, they remain set to the values you configured in the standard-button configuration on PayPal's website.
QUESTION: how can I programmatically override the advanced PayPal subscription parameters from my website? Is this even possible? Thanks.
<form accept-charset="UTF-8" action="https://www.paypal.com/cgi-bin/webscr" class="signup_company" id="signup_company" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="MY_PAYPAL_BUTTON_ID" />
<input type="hidden" name="currency_code" value="USD" />
<!-- First two months of subscription are free. -->
<input type="hidden" name="a1" value="0" />
<input type="hidden" name="p1" value="2" />
<input type="hidden" name="t1" value="M" />
<!-- Recurring subscription payments. -->
<input type="hidden" name="a3" value="29.95" />
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="M" />
<input type="hidden" name="src" value="1" />
<input type="hidden" name="sra" value="1" />
<!-- Pass-through variable sent to paypal; it is set in javascript before the submit. -->
<input type="hidden" name="custom" value="Evergreen::::foo#baz.com::::4" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_SM.gif"
border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"
onclick="$(#signup_company).submit();" />
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
After speaking with a PayPal tech, here is the how to proceed with the PayPal Standard Subscribe button, if you want maximal programmatic control over the HTML form variables:
Do not save your button as a hosted button at PayPal. If you do, then overriding whatever price tiers that you have configured and saved at PayPal cannot be overridden.
Do not encrypt your button. This means that when you create your Subscribe button, you should do two things: (a) use your e-mail address in the HTML form-post, rather than some merchant ID from PayPal; and (b) unprotect / unencrypt the HTML form variables generated during the button-create step.
Once you copy-and-paste the PayPal-generated HTML into your webapp, you can then rely on JavaScript event-handler to dynamically adjust the HTML form-parameters that determine the pricing / duration / etc of your subscription.