I have to make a paypal integration in my website for paying person.I found a simple code
<form action="https://www.paypal.com/cgi-bin/webscr" method="POST">
To pay with PayPal now please click on the PayPal icon below:
<input type="hidden" name="cmd" value="_xclick"><br>
<input type="hidden" name="business" value="your#paypal.email"><br>
<input type="hidden" name="item_name" value="Order #{$order_id}"><br>
<input type="hidden" name="amount" value="{$order_amount}"><br>
<input type="hidden" name="currency_code" value="{$currency_iso_3}"><br>
<input type="image" name="submit" src="http://images.paypal.com/images/x-click-but01.gif" alt="Pay with PayPal"><br>
< /form>
Is this secure for payment ?
You are sending the information over SSL/TSL.
If all the certificates are current and valid, you should be fine (so MITM attacks are less likely).
It is what banks and other financial and retail organizations are using - should be OK.
However, you did not really specify your requirements for secure integration - can you provide more information?
Related
I am building an e-commerce website with bitcoin with ionic framework, now my problem is that I want my users to be able to pay with bitcoin, I have searched online for bitcoin payment API that support ionic or angular, but found none, I tried using Coinbase, and others but it doesn't have any API that support angular or ionic.
<form action="https://www.coinpayments.net/index.php" method="post">
<input type="hidden" name="cmd" value="_pay_simple">
<input type="hidden" name="reset" value="1">
<input type="hidden" name="merchant" value="606a89bb575311badf510a4a8b79a45e">
<input type="hidden" name="currency" value="USD">
<input type="hidden" name="amountf" value="10.00">
<input type="hidden" name="item_name" value="Test Item">
<input type="hidden" name="item_desc" value="Item Description">
<input type="hidden" name="want_shipping" value="1">
<input type="hidden" name="success_url" value="http://www.yoursite.com/success">
<input type="image" src="https://www.coinpayments.net/images/pub/buynow-med.png" alt="Buy Now with CoinPayments.net">
</form>
I have tried this, but the problem is that it's not bringing the payment page directly and I can't customize it so that I can cancel the transaction, or run a function, its taking me to the CoinPayments website, I want a payment gateway that will bring the payment page like a popup on the page, like a JavaScript API.
I don't know of anyway that I will be able to accept bitcoin with ionic framework.
Using Electrum wallet could be a great free solution, also Bitpay is good solution but you need to pay 1%.
Follow the documentation: https://electrum.readthedocs.io/en/latest/merchant.html
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 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/
Hi I have an issue where I have a PayPal form on my website when I click to pay using a Desktop web-browser, the transaction completes with all IPN Posted data from PayPal being correct! However when I use an android or IOS device the transaction completes, but there is no Posted data from PayPal when user clicks the return to business-name site? Now if I do another transaction with the Desktop web-browser using an android user-agent, I get the same results that is happening with the mobile devices (No IPN posted data from PayPal)? My form:
<form action="https://www.sandbox.paypal.com/us/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="hug33472-facilitator#hugtech.com">
<input type="hidden" name="item_name" value="Power-Ball Roller Android App">
<input type="hidden" name="item_number" value="PBRAND0114">
<input type="hidden" name="amount" value="1.37">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://hugtech.com/cgi-bin/pbandroid/secret">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="cancel_return" value="http://hugtech.com/power_ball/mob">
<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="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Thanks, Larry
It sounds like you're confusing PDT and IPN. They're very similar except that PDT is meant to send data back to your return URL while IPN is meant to send data to an entirely separate script that isn't part of your checkout flow. IPN is the recommended method of updating your database, sending out emails, etc. Based on what you're saying about clicking the return link, though, you must be using PDT.
I haven't specifically tested PDT with mobile checkouts, but I know IPN does trigger regardless of the payment method or device. So make sure you're using IPN, not PDT, and you'll be fine.
I am using this code I found:
<form name="_xclick" action="https://www.sandbox.paypal.com/cgi-bin/webscr method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="me#example.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="1">
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="a3" value="5.00">
<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">
</form>
When you generate a button from paypal site, it gives you the option to select the link where to send the ipn. My question is, how do I get the ipn confirmation using the code above or how do I set the link for it?
To add IPN notifications to this button specifically you can just add an additional hidden field to the form.
<input type="hidden" name="notify_url" value="http://www.domain.com/ipn-listener.php" />
That will only trigger an IPN for the initial transaction, though. If you want to get IPN's for all payments associated with this profile from there on you'll need to configure IPN in your PayPal account profile under the Instant Payment Notification Preferences section. Simply turn it on and set the URL you want to use.
At that point, the account profile setting will be sort of a default IPN that your account will use for all transactions. However, this can be overridden using notify_url (or NOTIFYURL in API requests.)
Hope that helps.