Is there a way to pre-populate the "Send Payment" data on PayPal? I don't wan't a pay now button, I just want to be able to have a button for my own internal use that launches the Paypal website and pre populates the fields to send a payment to somebody. Is that possible?
I've tried using a form that submits the data to paypal, but I have a problem, the AMOUNT field doesn't populate, and I have no idea what I'm doing wrong!
This is what I have so far:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target = "paypal">
<input type="hidden" name="cmd" value="_send-money">
<INPUT TYPE="hidden" name="charset" value="utf-8">
<INPUT TYPE="hidden" NAME="email" VALUE="someone#gmail.com">
<INPUT TYPE="hidden" NAME="currency_code" VALUE="USD">
<input type="hidden" name="amount" value="15.00">
<input type="submit" value="Open Paypal">
</form>
You could try redirecting to the paypal.me/accountname/moneyamount (example: paypal.me/johnsmith/50) to have it bring you to a page that pays the john smith account with a pre-filled amount of $50. This functionality is set up by default.
https://www.paypal-community.com/t5/Products-and-Services/Can-the-PayPal-me-URL-be-modified-to-pre-fill-the-quot-Note-quot/td-p/1509015
Related
I'm developing a website.And the client wants to add PayPal button on it.
He has bussiness acount with PayPal.
So, My question is - what is the procedure ?
Must I ask him to login with his account, create a button and send me the html code? He is not familiar with web-development at all!
And is it OK to ask him to provide me his PayPal credentials in order to do all that staff by myself ?
What is the common approach here?
You can refer to integration of PayPal button here
You may check below code as a simple sample.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="YOUR_PAYPAL_ACCOUNT_EMAIL">
<input type="hidden" name="item_name" value="Product">
<input type="hidden" name="item_number" value="#1">
<input type="hidden" name="amount" value="10">
<input type="hidden" name="currency_code" value="USD">
<button type="submit">Pay Now</button>
</form>
For more details of each variable, please refer to below page.
https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
I have implemented a PayPal Payment Button that works fine. However i have a question about the email field. I need only email notifications from PayPal. I don't need the PayPal IPN. To understand me better check at my button code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="email" type="email" required value="">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" value="http://www.mywebsite.com/thanks.php" name="return"/>
<input type="hidden" value="http://www.mywebsite.com" name="cancel_return"/>
<input type="hidden" name="business" value="xxxxxxxxxxxxxxx">
<input type="hidden" name="item_name" value="Product Name">
<input type="hidden" name="item_number" value="Product ID">
<input type="hidden" name="amount" value="100">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="currency_code" value="USD">
<input name="Submit" type="submit" value="PAY">
</form>
As you can see the email field is empty and required and the user need to complete in order to process the form.
How can i transfer the email field information in the PayPal e-mail receipt that i receive from PayPal? Is it possible?
Can you recommend any other method to access that email field information? Maybe i can assign it into the product description which appears in the receipt.
Thanks.
The email address of your buyer's PayPal account will be in the email that you receive from PayPal. However, if you have reason to believe that the email address that you need will be different than the email address on the buyer's PayPal account, then remove the following line:
<input name="email" type="email" required value="">
And replace it with this:
<input type="hidden" name="on0" value="Email">
<input type="email" name="os0" value="" required>
i'm creating a small marketplace where several sellers can sell their products and each has their own express checkout link, depending on their email.
my form is like this:
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" id="form_paypal">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="bn" value="wa_dw_2.0.4">
<input type="hidden" name="business" value="receiver#gmail.com">
<input type="hidden" name="receiver_email" value="receiver#gmail.com">
<input type="hidden" name="amount" value="123.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="return" value="http://www.me.com/return.php">
<input type="hidden" name="item_name" value="Product Title Goes Here">
<input type="hidden" name="undefined_quantity" value="0">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="custom" value="12345">
<input type="hidden" name="cbt" value="Return to MY WEBSITE NAME">
<input type="hidden" name="cancel_return" value="http://www.me.com/failure.php">
<input type="hidden" name="notify_url" value="http://www.me.com/notify.php">
</form>
note that i set the "cbt" value as per https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/ but it's not working :( the return link still shows
"cancel and return to receiver#gmail.com"
which is confusing and just plain ugly for the buyer.
any ideas what i'm doing wrong here?
it's the same on the sandbox or the live version, i might add.
The document says "cbt : Sets the text for the Return to Merchant button on the PayPal Payment Complete page.For Business accounts, the return button displays your business name in place of the word "Merchant" by default. " This means you will see this text on the PayPal thank you page after the buyer completes the payments . Something like below :
First, what you're using here is Payments Standard, not Express Checkout. Eshan is correct with the information he provided regarding the parameter you're working with...it doesn't come up until after the payment is completed.
If you were actually using Express Checkout you would indeed have control over what you're asking about via the BRANDNAME parameter. It would still say "Cancel and return to" but then whatever you set for BRANDNAME would get output after that.
To my knowledge Payments Standard does not give you access to adjust the cancel link like EC does.
I am trying to do a mobile shopping cart and wish to make the process as simple as possible.
The client selects the products and I calculate the totals.
He clicks buy now and the total is sent to paypal express.
The product details are stored in our own database.
We need to only allow delivery to paypal account holder address and only verified accounts
I don't want the client to have to enter his delivery address (as it is stored at paypal).
So how can I ease the pain and get the customer details.
I am redirecting back to a page on the mobile when site when completed. Can I pass the data when this happens?
I am using a buy now button:
<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" id="business" value="payment#xxxx.com">
<input type="hidden" name="currency_code" id="currency_code" value="USD">
<input type="hidden" name="item_name" id="item_name" value="Teddy Bear">
<input type="hidden" name="amount" id="amount" value="12.99">
<input name="return" type="hidden" value="http://xxxx.com?pageToJump=pagePayPalCompleted" /> <input name="cancel_return" type="hidden" value="http://xxxx.com?pageToJump=pagePayPalCancelled" />
<input type="image" src="http://www.paypalobjects.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>
MrWarby.
If you are using a Buy Now button this information is not passed back by default, you would need to enable PaymentDataTransfer: https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/paymentdatatransfer/ or InstantPaymentNotification https://developer.paypal.com/webapps/developer/docs/classic/products/instant-payment-notification/
I'm trying to set up a paypal solution but i'm having some trouble with the RETURNURL.
My form looks like this.
<form method="post" action="https://api-3t.paypal.com/nvp">
<input type="hidden" name="USER" value="<%=PayPal_API_Username%>">
<input type="hidden" name="PWD" value="<%=PayPal_API_Password%>">
<input type="hidden" name="SIGNATURE" value="<%=PayPal_API_Signature%>">
<input type="hidden" name="VERSION" value="65.0">
<input type="hidden" name="PAYMENTREQUEST_0_PAYMENTACTION" value="Sale">
<input type="hidden" name="PAYMENTREQUEST_0_CURRENCYCODE" value="DKK">
<input type="text" name="PAYMENTREQUEST_0_AMT" value="<%=Amount%>.00">
<input type="hidden" name="CUSTOM" value="<%=GUID%>">
<input type="hidden" name="RETURNURL" value="http://<%=c_mainDomain%>/return.html">
<input type="hidden" name="CANCELURL" value="http://<%=c_mainDomain%>/cancel.html">
<input type="hidden" name="METHOD" value="SetExpressCheckout">
<input type="submit" name="submit" value="Videre til betaling med Paypal">
</form>
When i submit the form it goes to "https://api-3t.paypal.com/nvp" and shows the message below.
TOKEN=EC%2d2XR31554RN094031R&TIMESTAMP=2012%2d01%2d03T10%3a23%3a11Z&CORRELATIONID=a0c80a35bfde2&ACK=Success&VERSION=65%2e0&BUILD=2271164
Shouldn't it send me back to my own page, to the "RETURNURL"? or is there something i'm missing
Yeah, I'm pretty sure, that my comment was right.
This POST should be done by your web app server - transient to the client.
Just before the user clicks the 'pay' button (when you render the site) on your web app - you call the setExpressCheckout, then you read the token from the answer and apply it to the button.
Then after the user clicks he is redirected to paypal site and returns to your page by returnURL.
Please make sure you exactly understand the whole process. Giving too much information to your users may be a potential vulnerability to your payments module.
EDIT: I guess that the form you've created is from PayPal's tutorial. Please notice that it is for testing and understanding the whole process only.