My first two options are being passed to the transaction details without a problem. The phone and address.
For the rest of the options only the title (on2, on3, etc) pass to the details. The value (os2, os3, etc) come through as N/A.
<form class="paypalform" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="business" value="mybussiness.sanbox#email.com"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="return" value="http://website.com" />
<p><label>First Name:<span class="required">*</span><br>
<input type="text" name="first-name" value="" size="40" aria-required="true" aria-invalid="false"> </label></p>
<p><label>Last Name:<span class="required">*</span><br>
<input type="text" name="last-name" value="" size="40" aria-required="true" aria-invalid="false"> </label></p>
<p><label>Email:<span class="required">*</span><br>
<input type="email" name="email" value="" size="40" aria-required="true" aria-invalid="false"> </label></p>
<p><label>Phone:<br>
<input type="hidden" name="on0" value="Phone" /><input type="text" name="os0" value="" size="40" aria-invalid="false"> </label></p>
<p><label>Address:<br>
<input type="hidden" name="on1" value="Address" /><textarea name="os1" cols="40" rows="5" aria-invalid="false"></textarea></label></p>
<p><label>Please pick a item:<span class="required">*</span></label><br><label><input type="radio" name="item_name" value="item1" checked="checked"> Item1 </label><label><input type="radio" name="item_name" value="item2"> Item2 </label><label><input type="radio" name="item_name" value="item3"> Item3 </label><label><input type="radio" name="item_name" value="Beth Shalom Donation: Pillar of Community"> Item4 </label><label><input type="radio" name="item_name" value="item5"> Item5 </label></p>
<p><label>Please type your message below. It will appear in print and/or online:<br>
<input type="hidden" name="on2" value="Message" /><textarea name="message" cols="40" rows="5" aria-invalid="false" name="os2"></textarea></label></p>
<p><label>Amount:<span class="required">*</span><br>
<span class="dollarsign">$</span><input type="number" name="amount" min="0" aria-required="true" aria-invalid="false"></label></p>
<p><label>Acknowledge to be sent to:<br>
<input type="hidden" name="on3" value="Acknowledge to be sent to" /><input type="text" name="acknowledge" value="" size="40" aria-invalid="false" name="os3"></label></p>
<p><label>Recipient's Email:<br>
<input type="hidden" name="on4" value="Recipient's Email" /><input type="email" name="recipient-email" value="" size="40" aria-invalid="false" name="os4"></label></p>
<p><label>Recipient's Phone:<br>
<input type="hidden" name="on5" value="Recipient's Phone" /><input type="text" name="recipient-phone" value="" size="40" aria-invalid="false" name="os5"></label></p>
<p><input type="submit" value="Submit"></p>
</form>
I figured out what I did wrong. I have two name="" on the field options. I removed one of them and left the name="os2" and it is working.
Related
I have the following payment form that I setup:
<form id="ccform" action="https://hpp.sandbox.realexpayments.com/pay" method="post" target="output_frame">
<input type="hidden" name="MERCHANT_ID" id="MERCHANT_ID" value="Merchant ID">
<input type="hidden" name="ACCOUNT" id="ACCOUNT" value="internet">
<input type="hidden" name="ORDER_ID" id="ORDER_ID" value="20180518231046JP">
<input type="hidden" name="CURRENCY" id="CURRENCY" value="EUR">
<input type="hidden" name="AMOUNT" id="AMOUNT" value="500">
<input type="hidden" name="TIMESTAMP" id="TIMESTAMP" value="20180518231046">
<input type="hidden" name="SHA1HASH" id="SHA1HASH" value="8596447e0229c2f7216bca240d6a291f9cec5e14">
<input type="hidden" name="HPP_POST_RESPONSE" id="HPP_POST_RESPONSE" value="correctWebsiteButRemoved">
<input type="hidden" name="AUTO_SETTLE_FLAG" value="1">
<input type="hidden" name="HPP_VERSION" value="2">
<input type="hidden" name="CARD_STORAGE_ENABLE" value="1">
<input type="hidden" name="OFFER_SAVE_CARD" value="1">
<input type="hidden" name="PAYER_EXIST" value="0">
<input type="hidden" name="PAYER_REF" id="PAYER_REF" value="asdahsioda">
<input type="hidden" name="PMT_REF" id="PMT_REF" value="20180518231046JP-asdasda">
<input type="hidden" name="HPP_CUSTOMER_FIRSTNAME" value="First">
<input type="hidden" name="HPP_CUSTOMER_LASTNAME" value="Last">
<input type="hidden" name="HPP_LANG" value="DE">
<input type="hidden" name="COMMENT1" value="http://www.google.ie">
<input type="submit" value="Proceed to secure server" id="SUBMITBTN">
</form>
I was trying to get the card storage process to work with Realex. I just can't get it work. It does not reply with the correct values that I would expect based on the documentation: https://developer.realexpayments.com/#!/hpp/card-storage-and-management/create-payer-and-store-card
Thanks for your question. Your request POST looks correct, can you please check with a member of our Support Team that Card Storage through the HPP is enabled on your account? It is not enabled by default.
I am trying to pre-populate all the fields in the paypal page, but the phone is not populating.
Here is my code:
<INPUT TYPE="hidden" NAME="first_name" VALUE="John">
<INPUT TYPE="hidden" NAME="last_name" VALUE="Doe">
<INPUT TYPE="hidden" NAME="address1" VALUE="9 Elm Street">
<INPUT TYPE="hidden" NAME="address2" VALUE="Apt 5">
<INPUT TYPE="hidden" NAME="city" VALUE="Berwyn">
<INPUT TYPE="hidden" NAME="state" VALUE="PA">
<INPUT TYPE="hidden" NAME="zip" VALUE="19312">
<INPUT TYPE="hidden" NAME="lc" VALUE="US">
<INPUT TYPE="hidden" NAME="email" VALUE="buyer#domain.com">
<INPUT TYPE="hidden" NAME="night_phone_a" VALUE="610">
<INPUT TYPE="hidden" NAME="night_phone_b" VALUE="555">
<INPUT TYPE="hidden" NAME="night_phone_c" VALUE="1234">
What am I missing?
This is a bug in PayPal and the PD team has been working towards a fix.
i have some difficulties with defining html form for PayPal checkout,
i always use the same code but this time something go wrong,
i'm trying to send the user for paypal page to pay the all cart at once and
i'm getting an error:
We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the "Ask Seller a Question" link on the listing page. When you have the correct email address, payment can be made at www.paypal.com.
i checked the account setting and it seems to be ok, Account Type: Business Status: Verified, i also add the ipn address in the account and turn it to ON
this is my code:
<form method="post" action="https://www.paypal.com/cgi-bin/webscr" id="paypal" name="paypal">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="business#email.com">
<input type="hidden" name="currency_code" value="ILS">
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="return" value="http://www.example.com/orderSubmited.php" />
<input type="hidden" name="notify_url" value="http://www.example.com/paid.php" />
<input type="hidden" name="cancel_return" value="http://www.example.com" />
<input type="hidden" name="shipping" value="0" />
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="item_name" value="payment>
<input type="hidden" name="item_number" value="123456" />
<input type="hidden" name="amount" value="250" />
<input type="hidden" name="quantity" value="1" />
<input type="hidden" name="address1" value="Address" />
<input type="hidden" name="city" value="City" />
<input type="hidden" name="zip" value="Zip" />
<input type="hidden" name="email" value="customer#email.com" />
<input type="hidden" name="first_name" value="CustomerFirstName" />
<input type="hidden" name="last_name" value="CustomerLastName"/>
</form>
I have a form that I want to submit to paypal. When I submit the form I don't get to the overview for the submitted product but I end up on the default page for paypal.
I started with http://sandbox.paypal.com but I tried the non-sandbox site too.
<form action="http://sandbox.paypal.com/cgi-bin/webscr" id="paypal_form" method="post" name="paypal_form">
<input name="cmd" type="text" value="_xclick">
<input name="business" type="text" value="some#email.com">
<input name="lc" type="text" value="CH">
<input name="item_name" type="text">
<input name="item_number" type="text">
<input name="amount" type="text">
<input name="currency_code" type="text" value="CHF">
<input name="no_note" type="text" value="1">
<input type="text" name="return" value="http://google.com">
<input name="address_override" type="text" value="1">
<input name="country" type="text" value="CH">
<input name="first_name" type="text">
<input name="last_name" type="text">
<input name="address1" type="text">
<input name="zip" type="text">
<input name="city" type="text">
<input name="email" type="text">
</form>
Since I don't get an error at all, I have no idea what is going wrong. I had cases when Paypal told me that I have to provide a city or something like that but now I just get forwarded.
Note: The Charles Proxy tells me that the form was submitted with these values:
The issue is with the action address in your form. You are posting to "http://sandbox.paypal.com/cgi-bin/webscr". Try using "https://www.sandbox.paypal.com/cgi-bin/webscr" instead.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="notify_url" value="http://www.blaa.co.uk/ipn_subscribe.asp">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="blaaa#blaa.co.uk">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="return" value="http://www.blaablaa.co.uk/thankyou.asp?oid=955">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="item_name" value="Purchase">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="custom" value="955">
<input type="hidden" name="amount" value="85">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="address1" value="5 Birkin Close">
<input type="hidden" name="city" value="knutsford">
<input type="hidden" name="country" value="GB">
<INPUT id="email" type="hidden" name="email" value="test#test.com">
<INPUT type="image" name="Continue" src="NewImages/continue1.jpg" alt="Continue to payment merchant to pay for your purchase">
</FORM>
Any idea why this does pre populate the Adddress details if you do a credit card purchase?It looks fine to me.
The form is calling paypay - https://www.paypal.com/cgi-bin/webscr. The image is the button that sends the form to paypal. It is going to paypal and not prepopulating the address details in paypal if you want to pay by creditt card. Any ideas why please. Thanks
add this in your code it will work and also enable auto return ul option in your account in website payment prefrence under the selling prefrence under profile under my account option
<input type="hidden" name="return" value="http://abctest.com./purchase/thank-you.php">
(edit show code...)