I was desperately trying to implement the paypal payment in my website without actually redirecting to paypal's website. I need to stay on my website and send the card and personal details to the paypal and receive the response. I read some the documents in the paypal's site like adaptive payment etc. But it only left me more confused and are less informative for me. Is there actually any way to do it? can someone shed some light on this..?
Related
I know this question has repeated in stackoverflow. But i'm posting this, just to get an advice as i have messed up all the things about this topic and i don't have any correct idea of what i'm doing.Please guide me.I will be very grateful. I'm just a beginner to programming. I'm developing a web site, Which can post advertisements by customers about vehicles. and whenever a customer posted a ad, if he/she needs to make that posted advertisement to be appear at the top of the website, he/she can pay a fixed amount of money and make that advertisement the top ad. So for this task i need to ad a payment gateway which can accept credit card payments.
I have created a sandbox account in paypal developer site and also have upgraded it to paypal pro account. and also i watched so many tutorials on this, but now i have messed up with all those tutorial information and i don't have correct idea about how to do this. In some tutorials there linking the paypal account with paypal manager etc. I'm messed up with all these things and i don't know what purpose they are creating this paypal manager etc. According to my knowledge i think, To accept credit card details paypal payment pro account is used. So please anyone can give me a guide to how to begin to do this task. and if anyone can please show me a any step by step tutorial to achieve this task.
please guide me.
I will be very grateful for any help :-)
If you are using Paypal to validate payment, normally you just have to use the PayPal API.
Official documentation is good : Paypal SDK
Hope it can helps you.
EDIT : Here, examples in PHP, very simple.
I have an issue right now that is killing me, I have implemented several payment options but never used paypal, I don't know why is it so complicated.
The website already exists and wasn't developed by myself.
I don't know the ammount of the order it is dynamic, so the "create payment buttons" on the paypal website doesn't work for me, at this point i developed a solution using
PayPal developers
But it turns out that i only have the option to pay with a PayPal account or register a PayPal account, I do not want to force customers to do this, it has no sense. is there any relatively easy solution out there using the same PayPal API?
EDIT
The whole site code is in PHP so i need the solution in this language
As you have mentioned that you are aware of one payment method i.e. Express Checkout ( in which user needs to have a valid Paypal account) so the other method which I think you need is the Direct Payment (i.e. a user can pay with credit cards directly without any Paypal account) API.
For this direct payment api you need to enable Website Payment Pro WPP , here you can get info about WPP.
I have created a Direct Payment method with Sage Pay and cards sucsesfully on my website however I seem to be stugling linking with paypal.
I am using the Direct method and using the php kits found here.
http://www.sagepay.co.uk/support/find-an-integration-document/direct-integration-documents
At the moment when a user selects PayPal my site correctly transfers the user to the PayPal site to make the payment, which they do and it then returns them back to my site. With this code.
/?vtx=lockers-PAYMENT-1422281021-294670621
I assume my site is bent to be listening and communicating with PayPal at this point to accept the transaction.
I am really lost where to go now. If anyone has worked with SagePay and Paypal I would really appreciate some pointers.
Regards
Richard
It's not entirely clear where you are going wrong, but it sounds as if once the payment is done and the consumer has been redirected back to your site, you need to send a COMPLETE post back to Sage Pay in order to finalise the process.
Worth checking in the paypal sandbox to check your transactions are appearing and that they are in the expected state (for a standard payment transaction), they will appear as pending until the COMPLETE post is received by Sage Pay (see above).
I am running a e-commerce website and I want to integrate PayPal. I need to know immediately whether a user paid successfully or not after they paid via their credit cards. Is there a chance i can do that with PayPal?
I've heard PayPal has a service called IPN, which can post to my server and tell me the transaction's status. But lots of people are complaining that there are huge delays with IPN's PHP API.
Just finished an IPN integration a few hours ago :).
IPN stands for INSTANT payment notifications. In most times it just works(hi Apply fans!).
You add a form with variables such as currency and return URL and with a special page that you expect Paypal to send transaction information when the payment is made. Receiving a notification does not mean funds are sent to your account but the transaction has completed. (possible reasons to not get funds to your account include problems with card provider, incomplete accounts, etc)
You will face some questions regarding specific problems. But I would suggest checking paypal site and it's API docs. They are pretty straight forward and with a little understanding in your programming language and how HTTP works, you can implement it.
I have seen some posts about PayPal IPN system is slow. I have not seen it myself but in most cases, I'm sure you will get paypal API calls just before the user come back to your site.
I've had great success with nSoftware's PayPal plugins.
I have a database where you can select articles etc, users have an account, it's all in mysql and php (i guess you don't need that code).
What i was wondering was how to write a script that allows users to pay online for the articles they selected?
It doesn't need to be any code, just ideas / hints / tips / ... (that are doable in PHP or something similar)
Thanks in advance!!
-Samuel
You have to do that through a service that collects money, such as paypal or a bank.
You make an account there, and they will provide the necessary files and documentation to do that.
Usually it will mean
when the user wants to pay, you redirect them to a specific page in the payment site
you host an IPN (Instant Payment Notification) file where that site will contact you when he receives a payment
I've done some paypal coding before and it is easy to set up, suggest that you should search for payment gateway that, i've work with ipay88.com before its one of payment gateway at my place.
Usually if you setup the paypal for the business transaction you will need to register as merchant account and they will charge you per transaction, same goes with payment gateway.
It is a very broad question. But basically you need to integrate some payment module, such as paypal. Look at their website, where there are tutorials on how to get it working with php.