No action on submit button? - php

I am having problems with my submit button. It's supposed to take them to the Paypals payment page once clicked on but absolutely nothing happens when I click on it.
You can see it live here: http://cashski.com/buy-instagram-followers.php
Click on "View Pack" for the first pack and then on the green "Checkout" button.
Here is my HTML code for the button:
<form name="_xclick" action="https://www.paypal.com/us/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="kottish94#hotmail.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="2 000 Instagram Followers">
<input type="hidden" name="amount" value="9.00">
<input type="hidden" name="on1" value="Instagram Username" maxlength="200">
<input type="text" name="os1" placeholder="Example: http://instagram.com/YOURUSERNAME" required>
<input type="button" border="0" name="submit" value="Checkout" alt="Buy Instagram Followers">
</form>

Use
input type="submit"
instead of
input type="button"
and Replace CSS TO Submit button instead of button. Your Problem will solve

Related

Sandbox paypal white blank screen nothing happen

Sanbox paypal link not working. When click on buy now button it will showing blank white screen only. Before it working fine. I also tested on other website it doesn't worked for me.
kindly reply or let me know how to fix.
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"><input name="cmd" type="hidden" value="_xclick">
<input name="business" type="hidden" value="example#gmail.com">
<input name="item_name" type="hidden" value="1">
<input name="item_number" type="hidden" value="1">
<input name="amount" type="hidden" value="1">
<input type="submit" value="Buy now">
<input name="return" type="hidden" value="http://example.com/success-thank-you/"></form></div>

Paypal not returning CUSTOM field variable as post data

I have a paypal form where I have a custom and CatDescription field. But
From
<form name="paypalForm" action="paypal.php" method="post" id="paypalform">
<input type="hidden" name="business" value="shubhamjha900#gmail.com">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="id" value="">
<input type="hidden" name="CatDescription">
<input type="hidden" name="custom">
<input type="hidden" name="key" value="<?php echo md5(date("Y-m-d:").rand()); ?>">
<input type="hidden" name="payment" required>
<input type="submit" value="Pay Now">
</form>
The problem is that on my IPN page when the post data are sent back they send all the data but not the custom and CatDescription field data. Please tell me what can be the issue and how can I solve it. Can I use any other field by which I can send data? Whatever be the solution please help me.

Paypal purchase form won't navigate to Paypal

I'm using gpixpixel script, and configured it to allow the visitor to buy pixels via Paypal, but upon clicking the "Pay with Paypal" button, the page only shows a DNS error.
Here's the code of the form on the page for a transaction:
<form method="post" action="https://sandbox.paypal.com/cgi-bin/webscr">
<input type="hidden" name="amount" value="1620">
<input type="hidden" name="business" value="testmerchant#nodomain.com">
<input type="hidden" name="cancel_return" value="http://-site-/gpix/get_pixels.php?step=6">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="custom" value="8:c6f79ef0f714fae081a6df9d778df198">
<input type="hidden" name="item_name" value="Pixels: ">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="NotifyURL" value="http://-site-/gpix/paypal_ipn.php?payment_id=8">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://-site-/gpix/index.php">
<input type="hidden" name="rm" value="2">
<p>
<input type="submit" value="Pay with PayPal >>">
</p>
</form>
Also, this page is opened in an iframe within another page (located in the same directory.)
Any help is appreciated.
I can post the link to the website if anyone wants to look at the installation.
You are missing www
Try:
<form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr">
It was the browser's same origin policy that was restricting the page, which I had embedded as an iframe within another page, from navigating to Paypal's website.
Thanks to Vimal for pointing out the missing www, whose omission created a wrong URL, and obviously wouldn't navigate anywhere.

paypal notify_url not working and tx ID variable not pass to thank you page

Here is my paypal buy now html code:
<form name="_xclick" action="https://www.paypal.com/ca/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="alex#xumanii.com">
<input type="hidden" name="item_name" value="Bewolf Shooping Cart">
<input type="hidden" name="amount" value="<? echo $grandtotal2;?>">
<input type="hidden" name="add" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="member_id" value="<? echo $info['member_id'];?>">
<input type="hidden" name="return" value="http://www.bewolfclothing.com/thankyou.php">
<input type="hidden" name="notify_url" value="http://www.bewolfclothing.com/notify_paypal2.php">
<input type="hidden" name="cancel_return" value="http://www.bewolfclothing.com/mycart.php">
<input type="hidden" name="undefined_quantity" value="0">
<div class="submit-container"><input class="submit-button" type="submit" name="submit" value="CHECK OUT" /></div>
</form>
In my paypal account, under profile, my selling tools, I have set the AUTO RETURN to ON and I put the thankyou page in there.
After the purchase, it goes to the thankyou page, but the $_REQUEST['tx'] for the paypal transaction ID is not working and the notify_url NEVER gets called.
I searched online and saw that lots of people seem to have trouble with that, but I couldn't find a solution.
notify_url is used to Instant Payment Notification and the url should always be a live URL.
To get the tx ID, you need to
-Auto Return is set to ON
-Valid Return URL
-Payment Data Transfer is set to ON
and in your "http://www.bewolfclothing.com/thankyou.php"
$tx_id = $_GET['tx']; //gives you tx id

Multiple PayPal buttons inside single Form Element

Currently I can have single paypal button in a form element like:
<form id="pkg1" name="_xclick" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick"/>
<input type="hidden" name="business" value="seller_1360303883_biz#gmail.com"/>
<input type="hidden" name="currency_code" value="USD"/>
<input type="hidden" name="item_name" value="Digital Download"/>
<input type="hidden" name="amount" value="$<?php echo $price1 ?>"/>
<input type="hidden" name="return" value="https://www.sandbox.paypal.com/cgi-bin/success.php"/>
<input type="hidden" name="notify_url" value="notify.php"/>
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"/>
</form>
I wonder if there is a way to place more than one paypal buttons in single form??
I'm no talking about adding to cart.
So is there a way that i be able to make individual transactions while putting them in single form?
Thanx in Advance

Categories