I am trying to making simple product checkout system for my site. I am using paypal default checkout system. It is working fine but I need coupon code facility also. I never see any options in paypal for coupon code thing. That’s why I tried to create that via jquery.
I successful made that but it is work only on one product. When I add more product in page this it is not work. I can understand it about class and id issue but still I don’t figure out how to do that. also trying for discount as % wise current my code only work hard coded price.
Would you guys check my code see where my mistake is or how can make it. Or if there have any other way to do
HTML
<h2> Product 1 - $4.99</h2>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal" class="frm_paypal">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="info#soming.com" />
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="item_name" value="Chile Powder" />
<input type="hidden" name="item_number" value="0001" />
<input type="hidden" name="amount" class="amount" value="4.99" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="button_subtype" value="products" />
<input type="hidden" name="no_note" value="0" />
<input type="hidden" name="tax_rate" value="0.082" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest" />
<input type="image" alt="PayPal - The safer, easier way to pay online!" name="submit" src="http://oldstoberfest.com/wp-content/uploads/2015/04/buynow.png" class="btnPaypal" />
<div class="div_coupon_code">
<div class="div_msg"></div>If you have any coupon code please enter Otherwise leave it blank and Press checkout.
<br>
<input type="text" name="coupon_code" class="coupon_code" value="" placeholder="Coupon Code" />
<br>
<input type="button" class="btnCheckOut" name="btnCheckOut" value="Checkout" /> <span class="span_pay">
<input type="button" class="btnPay" name="btnPay" value="Pay" />
</span>
</div>
<img alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" border="0" />
</form>
<h2> Product 2 - $6.99</h2>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal" class="frm_paypal">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="info#soming.com" />
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="item_name" value="Chile Powder" />
<input type="hidden" name="item_number" value="0002" />
<input type="hidden" name="amount" class="amount" value="6.99" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="button_subtype" value="products" />
<input type="hidden" name="no_note" value="0" />
<input type="hidden" name="tax_rate" value="0.082" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest" />
<input type="image" alt="PayPal - The safer, easier way to pay online!" name="submit" src="http://oldstoberfest.com/wp-content/uploads/2015/04/buynow.png" class="btnPaypal" />
<div class="div_coupon_code">
<div class="div_msg"></div>If you have any coupon code please enter Otherwise leave it blank and Press checkout.
<br>
<input type="text" name="coupon_code" class="coupon_code" value="" placeholder="Coupon Code" />
<br>
<input type="button" class="btnCheckOut" name="btnCheckOut" value="Checkout" /> <span class="span_pay">
<input type="button" class="btnPay" name="btnPay" value="Pay" />
</span>
</div>
<img alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" border="0" />
</form>
<h2> Product 3 - $8.99</h2>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal" class="frm_paypal">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="info#soming.com" />
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="item_name" value="Chile Powder" />
<input type="hidden" name="item_number" value="0003" />
<input type="hidden" name="amount" class="amount" value="8.99" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="button_subtype" value="products" />
<input type="hidden" name="no_note" value="0" />
<input type="hidden" name="tax_rate" value="0.082" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest" />
<input type="image" alt="PayPal - The safer, easier way to pay online!" name="submit" src="http://oldstoberfest.com/wp-content/uploads/2015/04/buynow.png" class="btnPaypal" />
<div class="div_coupon_code">
<div class="div_msg"></div>If you have any coupon code please enter Otherwise leave it blank and Press checkout.
<br>
<input type="text" name="coupon_code" class="coupon_code" value="" placeholder="Coupon Code" />
<br>
<input type="button" class="btnCheckOut" name="btnCheckOut" value="Checkout" /> <span class="span_pay">
<input type="button" class="btnPay" name="btnPay" value="Pay" />
</span>
</div>
<img alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" border="0" />
</form>
<h2> Product 4 - $1.99</h2>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal" class="frm_paypal">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="info#soming.com" />
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="item_name" value="Chile Powder" />
<input type="hidden" name="item_number" value="0004" />
<input type="hidden" name="amount" class="amount" value="1.99" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="button_subtype" value="products" />
<input type="hidden" name="no_note" value="0" />
<input type="hidden" name="tax_rate" value="0.082" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest" />
<input type="image" alt="PayPal - The safer, easier way to pay online!" name="submit" src="http://oldstoberfest.com/wp-content/uploads/2015/04/buynow.png" class="btnPaypal" />
<div class="div_coupon_code">
<div class="div_msg"></div>If you have any coupon code please enter Otherwise leave it blank and Press checkout.
<br>
<input type="text" name="coupon_code" class="coupon_code" value="" placeholder="Coupon Code" />
<br>
<input type="button" class="btnCheckOut" name="btnCheckOut" value="Checkout" /> <span class="span_pay">
<input type="button" class="btnPay" name="btnPay" value="Pay" />
</span>
</div>
<img alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" border="0" />
</form>
<h2> Product 5 - $6.99</h2>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal" class="frm_paypal">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="info#soming.com" />
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="item_name" value="Chile Powder" />
<input type="hidden" name="item_number" value="0005" />
<input type="hidden" name="amount" class="amount" value="6.99" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="button_subtype" value="products" />
<input type="hidden" name="no_note" value="0" />
<input type="hidden" name="tax_rate" value="0.082" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest" />
<input type="image" alt="PayPal - The safer, easier way to pay online!" name="submit" src="http://oldstoberfest.com/wp-content/uploads/2015/04/buynow.png" class="btnPaypal" />
<div class="div_coupon_code">
<div class="div_msg"></div>If you have any coupon code please enter Otherwise leave it blank and Press checkout.
<br>
<input type="text" name="coupon_code" class="coupon_code" value="" placeholder="Coupon Code" />
<br>
<input type="button" class="btnCheckOut" name="btnCheckOut" value="Checkout" /> <span class="span_pay">
<input type="button" class="btnPay" name="btnPay" value="Pay" />
</span>
</div>
<img alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" border="0" />
</form>
<h2> Product 6 - $6.99</h2>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal" class="frm_paypal">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="info#soming.com" />
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="item_name" value="Chile Powder" />
<input type="hidden" name="item_number" value="0006" />
<input type="hidden" name="amount" class="amount" value="6.99" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="button_subtype" value="products" />
<input type="hidden" name="no_note" value="0" />
<input type="hidden" name="tax_rate" value="0.082" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest" />
<input type="image" alt="PayPal - The safer, easier way to pay online!" name="submit" src="http://oldstoberfest.com/wp-content/uploads/2015/04/buynow.png" class="btnPaypal" />
<div class="div_coupon_code">
<div class="div_msg"></div>If you have any coupon code please enter Otherwise leave it blank and Press checkout.
<br>
<input type="text" name="coupon_code" class="coupon_code" value="" placeholder="Coupon Code" />
<br>
<input type="button" class="btnCheckOut" name="btnCheckOut" value="Checkout" /> <span class="span_pay">
<input type="button" class="btnPay" name="btnPay" value="Pay" />
</span>
</div>
<img alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" border="0" />
</form>
<h2> Product 7 - $6.99</h2>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal" class="frm_paypal">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="info#soming.com" />
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="item_name" value="Chile Powder" />
<input type="hidden" name="item_number" value="0007" />
<input type="hidden" name="amount" class="amount" value="6.99" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="button_subtype" value="products" />
<input type="hidden" name="no_note" value="0" />
<input type="hidden" name="tax_rate" value="0.082" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest" />
<input type="image" alt="PayPal - The safer, easier way to pay online!" name="submit" src="http://oldstoberfest.com/wp-content/uploads/2015/04/buynow.png" class="btnPaypal" />
<div class="div_coupon_code">
<div class="div_msg"></div>If you have any coupon code please enter Otherwise leave it blank and Press checkout.
<br>
<input type="text" name="coupon_code" class="coupon_code" value="" placeholder="Coupon Code" />
<br>
<input type="button" class="btnCheckOut" name="btnCheckOut" value="Checkout" /> <span class="span_pay">
<input type="button" class="btnPay" name="btnPay" value="Pay" />
</span>
</div>
<img alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" border="0" />
</form>
JS
jQuery(document).ready(function($){
$('body').on('click','#btnPaypal', function(e) {
e.preventDefault();
$("#div_coupon_code").show("slow");
return false;
});
$('body').on('click','#btnCheckOut', function(e) {
var coupon=$("#coupon_code").val();
var go_paypal=1;
if(coupon=="happy" || coupon=="HAPPY")
{
$("#amount").val(5.24);
$("#div_msg").html("Valid coupon code entered! Click pay to continue").show("slow");
go_paypal=0;
}
else if(coupon!="")
{
$("#div_msg").html("Invalid coupon code. Please double check").show("slow");
go_paypal=1;
}
else
$("#frm_paypal").submit();
if(go_paypal==0)
{
$("#btnCheckOut").hide("slow");
$("#span_pay").show("fast");
}
});
$('body').on('click','#btnPay', function(e) {
$("#frm_paypal").submit();
});
$("#div_coupon_code").hide();
$("#span_pay").hide();
});
single product demo
http://jsfiddle.net/cyber007/gpLeqgzc/
Multiple product demo
http://jsfiddle.net/cyber007/3pLv8dy6/
i will keep update here
if you want to calculate discount for multiple products dynamically then make sum of all products price and then apply coupon discount after getting total
So,your code should be like this...
function calcPrice(){
var v = parseInt(document.getElementById("val").value);
var q = parseInt(document.getElementById("quantity").value);
if ((isNaN(q)) || (q == null) || (q <0)) {
alert ("You must enter a positive number");
document.getElementById("quantity").value = "";
return false;
}
var p = calcTotal(v,q);
alert("Total Price = " + p);
}
function calcTotal(v,q) {
var discount = 0;
if (q>=1) {discount = .25}
var price = q * v;
var savings = price * discount;
var total = price - savings;
return total;
}
this is the reference you just need to modify id and class for your HTML
Related
this image which test in localhost
view.blade.php`
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="PPDGFrame" class="standard" id='paypal_id' accept-charset="utf-8">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="{!! $send_money->financial_account->paypal_account !!}">
<!-- -->
<input type="hidden" name="item_number_1" value="1"/>
<input type="hidden" name="item_name_1" value="Tansfer"/>
<!-- <input type="hidden" name="rm" value="2"/>
<input type="hidden" name="test_ipn" value="1" />-->
<input type="hidden" name="expType" value="instant">
<input type="hidden" name="amount_1" value="{!! $send_money->withdraw_amount !!}">
<input type="hidden" name="buyer_credit_promo_code" value="">
<input type="hidden" name="buyer_credit_product_category" value="">
<input type="hidden" name="email" value="kushwahavikas1993#gmail.com">
<!-- {!! Config::get('constants.Paypal_account') !!} -->
<input type="hidden" name="buyer_credit_user_address_change" value="">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type='hidden' name='cancel_return' value='http://example.com/cancel.php'>
<input type='hidden' name='return' value='http://localhost/softral/public/admin/financial/requestMoney/getDone'>
<input type="hidden" name="detail1_description" value="Softral Payment"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="submit" value="Pay!"/>
</form>`
I dont undersatnd what went wrong with this code any solution will be highly appriciated.
I have the following form code in my website however when I click on the Paypal subscription button the price of the subscription shows $0.00 on the paypal checkout page. Is there something wrong with my form parameters?
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="registrations-facilitator#invent2win.com">
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="a3" value="5.55"> <!--Cost-->
<input type="hidden" name="t3" value="1"> <!--Monthly subscription-->
<input type="hidden" name="p3" value="M"> <!--Monthly subscription-->
<input type="hidden" name="src" value="1"> <!--YES, make it reoccurring-->
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="item_name" value="Economy Sandbox">
<input type="hidden" name="item_number" value="$usernum" />
<input type="hidden" name="return" value="http://www.example.com/purchasecomplete&email=$email?num=$usernum" />
<input type="hidden" name="cancel_return" value="http://www.example.com/cancel" />
<input type="hidden" name="notify_url" value="http://www.example.com/purchasecomplete&email=$email?num=$usernum">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
This should work for you:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="registrations-facilitator#invent2win.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="a3" value="5.55">
<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">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="item_name" value="Economy Sandbox">
<input type="hidden" name="item_number" value="4" />
<input type="hidden" name="return" value="http://www.example.com/purchasecomplete&email=$email?num=$usernum" />
<input type="hidden" name="cancel_return" value="http://www.example.com/cancel" />
<input type="hidden" name="notify_url" value="http://www.example.com/purchasecomplete&email=$email?num=$usernum">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
My add to cart button is having this code.
<form target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" >
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="ajith-facilitator#pavanathara.com">
<input type="hidden" name="lc" value="UK">
<input type="hidden" name="item_name" value="<?= #$row['prod_name'] ?>">
<input type="hidden" name="item_number" value="<?= #$row['prod_id'] ?>">
<input type="hidden" name="amount" value="<?= #$row['prod_price'] ?>">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="https://paypalipn.my.phpcloud.com/payment-successful.php">
<input type="hidden" name="cancel_return" value="https://paypalipn.my.phpcloud.com/payment-cancelled.php">
<input type="hidden" name="tax_rate" value="<?= #$settings[0]['pbreakup_value'] ?>">
<input type="hidden" name="shipping" value="<?= #$settings[1]['pbreakup_value'] ?>">
<input type="hidden" name="add" value="1">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">
<input type="hidden" name="prod_id" value="<?= #$row['prod_id'] ?>">
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_cart_LG.gif" 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>
But on https://paypalipn.my.phpcloud.com/payment-successful.php I am not receiving any response from paypal.
I have a displaycart.php page where it displays all items I have in a shopping cart, each item has an ItemUnitPrice field where it shows the unit price of the item.
If I have say 6 items in the cart then I want to add up the total ItemUnitPrice fields and set that amount to be paid with PayPal.
I have checked out PayPals button features which they allow and you can only set a given price for the user to pay for when you create the button.
Is there a way I can link the PayPal button to my database so it shows the total of all the ItemUnitPrice fields.
The variable which holds the total ItemUnitPrice:
<?php
$Total = $Quantity * $ItemUnitPrice;
?>
The PayPal 'Pay Now' Button:
<html>
<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="hosted_button_id" value="KAMQ5PVWVDYYN">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_paynow_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
</html>
Edit:
Yeah I've done something stupidly wrong!
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_BLANK">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="info#asianweddingservices.org" />
<input type="hidden" name="item_name" value="<? $ItemDesc ?>" />
<input type="hidden" name="item_number" value="<?$ItemCode ?>" />
<input type="hidden" name="amount" value="<?$Total ?>" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="lc" value="GB" />
<input type="hidden" name="bn" value="PP-BuyNowBF" />
<input src="paypal/purchase.png" name="Submit" type="image" value="purchase" alt="Purchase" />
</form>
Yes. Change the set value to your total.
Show your code and I can edit the answer to fix it for you.
Add this:
<input type="hidden" name="amount" value="<? echo $Total; ?>" />
If that doesn't work:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_BLANK">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="PAYPAL EMAIL" />
<input type="hidden" name="item_name" value="ITEM NAME" />
<input type="hidden" name="custom" value="CUSTOM VALUE" />
<input type="hidden" name="item_number" value="ITEM NUMBER" />
<input type="hidden" name="amount" value="TOTAL" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="lc" value="GB" />
<input type="hidden" name="bn" value="PP-BuyNowBF" />
<input src="paypal/purchase.png" name="Submit" type="image" value="pruchase" alt="Purchase" />
</form>
Replacing the values to yours of-course.
Anybody having this problem? Suddenly paypal is not returning POST data to the notify_url. Array is completely empty and it happens when payment is made through new paypal checkout system.
Below is the final page after payment is made. When I click continue booking, it should have redirected to notify_url with POST data for validation and stuff but data is an empty array.
My request code is listed below. Can anybody please take a look at it and tell me whether some variable is missing or i am doing something wrong?
<form method="post" name="paypal_form" action="http://www.sandbox.paypal.com/cgi-bin/webscr">
<input type="hidden" name="business" value="ayaz.a_1286483626_biz#gmail.com" />
<input type="hidden" name="cmd" value="_xclick" />
<!-- the next three need to be created -->
<input type="hidden" name="return" value="https://system1.smanager.net/SM/lib/booking_system/response.php" />
<input type="hidden" name="cancel_return" value="https://system1.smanager.net/SM/lib/booking_system/paypal_ipn.php?cancelled=true" />
<input type="hidden" name="notify_url" value="https://system1.smanager.net/SM/lib/booking_system/response.php" />
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="bn" value="toolkit-php" />
<input type="hidden" name="cbt" value="Continue Back to Booking System" />
<!-- Payment Page Information -->
<input type="hidden" name="no_shipping" value="" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="cn" value="Comments" />
<input type="hidden" name="cs" value="" />
<!-- Product Information -->
<input type="hidden" name="item_name" value="TestProduct" />
<input type="hidden" name="amount" value="10.23" />
<input type="hidden" name="quantity" value="1" />
<input type="hidden" name="item_number" value="1234" />
<input type="hidden" name="undefined_quantity" value="" />
<input type="hidden" name="on0" value="" />
<input type="hidden" name="os0" value="" />
<input type="hidden" name="on1" value="" />
<input type="hidden" name="os1" value="" />
<!-- Shipping and Misc Information -->
<input type="hidden" name="shipping" value="0.0" />
<input type="hidden" name="shipping2" value="" />
<input type="hidden" name="handling" value="" />
<input type="hidden" name="tax" value="6" />
<input type="hidden" name="custom" value="somedata" />
<input type="hidden" name="invoice" value="" />
<!-- Customer Information -->
<input type="hidden" name="first_name" value="ayaz" />
<input type="hidden" name="last_name" value="alavi" />
<input type="hidden" name="address1" value="Address" />
<input type="hidden" name="address2" value="" />
<input type="hidden" name="city" value="" />
<input type="hidden" name="state" value="abc" />
<input type="hidden" name="zip" value="" />
<input type="hidden" name="email" value="ayaz.a_1286483582_per#gmail.com" />
<input type="hidden" name="night_phone_a" value="" />
<input type="hidden" name="night_phone_b" value="" />
<input type="hidden" name="night_phone_c" value="" />
</form>
</body>
Thanks.
I have also face same problem.
Please set the following settings in Your business account.
In Website Payment Preferences
=> Auto Return: On
=> Set Return URL
=> Payment Data Transfer: On.
Please try this, this may help you.
All the best.
Kanji