I am banging my head for 2 days to integrate neteller into my website but could not get it,
Returned response in xml contain error saying Invalid merchantid/merchant key ,how can i get them?
<form method="post" action="https://test.api.neteller.com/netdirect">
<input type="text" name="version" value=" 4.1">
<input type="text" name="amount" size="10" value="3443" maxlength="10">
<input type="text" name="currency" value="USD" size="10" maxlength="3">
<input type="text" name="net_account" size="20" value="" maxlength="100">
<input type="text" name="secure_id" size="10" value="" maxlength="6">
<input type="hidden" name="merchant_id" value="43646">
<input type="hidden" name="merch_key" value="456453">
<input type="hidden" name="merch_transid" value="46436436" maxlength="50">
<input type="hidden" name="language_code" value="EN">
<input type="hidden" name="merch_name" value="fdghdfhgf">
<input type="hidden" name="merch_account" value="436346" maxlength="50">
<input type="hidden" name="custom_1" value="test123" maxlength="50">
<input type="hidden" name="custom_2" value="test123" maxlength="50">
<input type="hidden" name="custom_3" value="test123" maxlength="50">
<button type="submit" name="submit">Make Transfer</button>
</form>
At first You should not put your merchant credentials in hidden inputs for security reasons. Everyone can see your sensitive data. Make a POST on server side not client side.
merchant API key You can generate on merchant neteller panel in the Developer tab.
Related
PayPal is giving an error with recurring payments. This is my form:
<html>
<form method="post" action="https://www.paypal.com/cgi-bin/webscr">
<input type="hidden" name="item_name" value="Test Donation">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="hidden" name="business" value="68YARP6A6VWY6">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="src" value="1">
<input type="hidden" name="a3" value="7">
<input type="hidden" name="p3" value="2">
<input type="hidden" name="t3" value="W">
<input type="hidden" name="modify" value="1">
<input type="submit" value="Submit">
</form>
</html>
PayPal gives me an error saying "Things don't appear to be working at the moment. Please try again later."
I think I have followed the instructions on this page correctly, but maybe not.
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/#recurring-payment-variables
Can anyone tell what is wrong?
The problem is that PayPal decided to not let subscribers modify their subscriptions anymore, so the "modify"="1" was the problem. I changed that to "0", and it all works.
I would like to insert an Amount to PayPal form from my website and when they click the Submit button.
The item_name, quantity both are the display on the PayPal website, but Price per item is empty? I need to add Price per item whatever amount is in the amount field?
HTML FORM
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" value="_xclick" name="cmd">
<input type="hidden" value="1" name="upload">
<input type="hidden" value="xxx#gmail.com" name="business">
<input type="hidden" value="T-SHIRT" name="item_name">
<input type="hidden" value="6.99" name="amount_1">
<input type="hidden" value="1" name="quantity">
<input type="hidden" value="" name="custom">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" value="http://localhost/paypalform/my_ipn.php" name="notify_url">
<input type="hidden"
value="http://localhost/paypalform/checkout_complete.php"
name="return">
<input type="hidden" value="2" name="rm">
<input type="hidden" value="Return to The Store" name="cbt">
<input type="hidden"
value="http://localhost/paypalform/paypal_cancel.php"
name="cancel_return">
<input type="hidden" value="GB" name="lc">
<input type="hidden" value="EUR" name="currency_code">
<input type="image" name="submit"
src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif">
</form>
Paypal Screenshot
I have Try amount instead of amount_1 PayPal showing error message
Things don't appear to be working at the moment. Please try again later.
Try amount instead of amount_1
<input type="hidden" value="6.99" name="amount">
Basically i have a html form as string
<form class="form login_form" action="https://app.box.com/api/oauth2/authorize?response_type=code&redirect_uri=http://localhost:8080/&client_id=6n8aeye40bowhwz&state=V8eTbbtXbsV" method="post" name="login_form">
<ul class="container error_container basic_list basic_list_sm hidden"><li class="data plm warning ram pas man"><div class="media pvs"><div class="img icon"><div class="sprite_signup_login_icon_error"></div></div><div class="bd"></div></div></li></ul>
<div class="field_set login_fields fw center">
<div class="login_user_inputs"><label for="login" class="field_label user_login_field">Email Address</label><div class="user_login_field text_input_with_sprite text_input_with_sprite_16x16 mbm"><input id="login" class="text_input login_email ram field_element " name="login" type="email" title="Email Address" placeholder="Email Address" value="email#gmail.com"> <label class="icon" for="login" title="Email Address"></label></div><label for="password" class="field_label user_password_field">Password</label><div class="user_password_field text_input_with_sprite text_input_with_sprite_16x16 mbm"> <input id="password" class="text_input login_password ram field_element" name="password" title="Password" placeholder="Password" type="password" autocapitalize="off" autocomplete="off" autocorrect="off" value="passwordstring"> <label class="icon" for="password" title="Password"></label></div> </div> <div class="login_submit_div"><input class="btn btn-primary mhn login_submit fw pvm ram" title="Authorize" value="Authorize" type="submit" name="login_submit"></div> <input type="hidden" name="dologin" value="1" /> <input type="hidden" name="client_id" value="99hxwc5z7wz" /><input type="hidden" name="response_type" value="code" /><input type="hidden" name="redirect_uri" value="http://localhost:8080/" /><input type="hidden" name="scope" value="root_readwrite manage_groups manage_enterprise_properties manage_app_users manage_managed_users" /><input type="hidden" name="folder_id" value="" /><input type="hidden" name="file_id" value="" /> <input type="hidden" name="state" value="Licg8fhDiFyobsV" /> <input type="hidden" name="reg_step" value="" /><input type="hidden" name="submit1" value="1" /><input type="hidden" name="folder" value="" /><input type="hidden" name="login_or_register_mode" value="login" /><input type="hidden" name="new_login_or_register_mode" value="" /><input type="hidden" name="__login" value="1"><input type="hidden" name="redirect_url" value="/api/oauth2/authorize?response_type=code&redirect_uri=http://localhost:8080/&client_id=99hxwc5z7p9g3z&state=LichV8eTbbtXbsV"><input type="hidden" name="request_token" value="5d6b31164f15f58bebff206db0aa595eaa90f5f9b857860f8ac3e64c85a5b5f4"> <input type="hidden" id="_pw_sql" name="_pw_sql" value=""/>
</div>
<div class="sso_switch option_sso mts pvs phm hidden">
Use Single Sign On (SSO)
Use Box account credentials
</div>
</form>
and now i want to submit this form to the url specified in action parameter of form tag. Same as it will be submitted from a browser. And condition is i should not use beego webserver for this.
Thanks in advance
If I understand you correctly, you have to work with an HTML form as opposed to just the input values, and you want to send the input contained in that form to some other server for processing, and you also want to do this programmatically with Go as opposed to clicking on a button inside a browser.
If I got that right, what you have to do is first get the input values, action url, and method from the form. You can do that by using golang.org/x/net/html for example.
After you have all the necessary values you'll have to encode the input values into a valid application/x-www-form-urlencoded string which you can do using the net/url package.
Then all you have to do is to create an http request with http.NewRequest using the form method and action url as it's first two arguments and the urlencoded string as it's last body argument. (You can use strings.NewReader to turn a string into an io.Reader.)
Finally call http.Client.Do on the http.DefaultClient with the newly created request as it's argument.
It's possible that there are some 3rd party packages that do most of this work for you, so if you want to avoid doing this yourself try searching through github.
PayPal DNS issues, or maybe I'm doing something wrong below to cause this?
This was working fine until today oddly enough
Here's my PayPal form (uses PayPal buttons API):
<form id="mepr_pp_standard_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="some#email.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="Cool Product">
<input type="hidden" name="item_number" value="54">
<input type="hidden" name="tax_rate" value="0.000">
<input type="hidden" name="return" value="http://cooliosite.org/return">
<input type="hidden" name="cancel_return" value="http://cooliosite.org/cancel?txn_id=54">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<input type="hidden" name="a3" value="30.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
</form>
I get to PayPal properly after submitting the button form.
But as soon as I click "Log In" I get this:
The live16 part of the PayPal URL changes from time to time, but the DNS error remains the same otherwise.
So can anyone spot that I'm doing something wrong (aside from the insecure HTML form) that would cause this DNS issue - or is PayPal simply having some DNS troubles that are not mentioned in their status page currently?
Fix has been pushed for this issue. Please proceed for further testing.
I'm creating a simple paypal checkout where the customer can check out via PayPal. Below is the sample code i am using for paypal checkout.
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="item_name" value="kids t-shirt">
<input type="hidden" name="amount" value="200.00">
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
As you can see, a simply form that passes product name and price which customer can see in their order summary.however how can i pass products details such as product size and color?
Just pass the some more hidden value.check the below code.
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="item_name" value="kids t-shirt">
<input type="hidden" name="amount" value="200.00">
<input type="hidden" name="on0" value="Size" />
<input type="hidden" value="your size value" name="os0">
<input type="hidden" name="on1" value="color" />
<input type="hidden" value="your color value" name="os1">
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>