I want to return the invoice generated after a PayPal payment on my website. How do I get the PayPal invoice generated after this payment is made?
Your question is not 100% clear. PayPal already sends an invoice (you can customize this from your PayPal account) upon payment completion.
What you can do on your side is to handle payment confirmation using PDT or IPN. I would recommend the second one since is more reliable. Once you get the payment confirmation through IPN you can send to customer your own generated invoice based on the order data.
If you are interested to easily integrate your custom shopping cart with PayPal please read this article.
You can get every information from PayPal using PayPal API.
Related
We use Paypal PHP SDK adaptative payment service to process payments in our site as we receive the payment, take a commission and send the remaining to the listing owner.
We got the PayRequest and the SetPaymentOptions working. The problem is the ReceiverOptions InvoiceData accordingly with the documentation only work with embed pay flow.
So how am I supposed to pass quantity to be paid if I am not using embed pay flow but I need adaptative payment because of the commission we take?
I am using parallel adaptive payment. i got the php coding from following link of paypal developer` website.
https://www.paypal-labs.com/integrationwizard/adaptive/main.php
Now the transaction of amount takes place successfully. But i want to store the transactions details such as
1.transaction id,2. Amount 3.Status etc. After the returns from paypal to my website
Presently i did this with paypal sand box account
You could use IPN to get information back to your website that pertains to the transaction. You can find more on IPN on PayPal Developer's Site.
First of all a want to mention that I am very new in PayPal at all.
I have create a plugin for WordPress, that is useful for booking a taxi for a trip. The plugin, it has it's own cart, that allowing the client to add several services in the cart and then to check out via PayPal.
As I mentioned earlier I am new, to PayPal, so I have download the PHP SDK provided by the PayPal, and I have complete the first step of the payment process. I have got the Token, and then redirect my client to PayPal web site to perform the payment.
The problem is that, in PayPal web site I have only the options "Have a PayPal account?" and "Create a PayPal account". What I like to ask, is how can I use the credit card payment instead of the "Create a PayPal account" ? Is there any way ?
Any idea please ?
You may want to try using Stripe. http://www.stripe.com/ super-easy, and has excellent documentation. I have used it alongside Paypal express checkout.
Paypal now required paypal account to get payment when you use express checkout api, to get payment from paypal use credit card reference api or any other api suit your need from paypal
I am new to sandbox and paypal payment gateway. I am using paypal adaptive payment to pay amount to two people at a time. My current code works perfectly. I am using the paypal generated code. I just want to know that is it possible that when the payment is made successfully can I make that entry to my database. I have my php code, but where do I need to write this?
Thanks in advance(plzz no down votes)
You should wait for the IPN message that contain details about the payment status
https://www.paypal.com/ipn
You need to define the url of the php script that listen for those messages in your paypal account. There are some php examples on how to implement it.
I am integrating PayPal into my website and need to know how I can confirm that a payment has been processed or not.
I need PayPal to send me a response via PHP get that confirms the payment. Is there an option?
Thanks.
See the "Completing the Express Checkout Transaction" section of this page. After you send the request, PayPal will send an NVP response including the transaction ID.
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECSimpleIntegration
If you aren't using the Express Checkout API, and instead using Website Payments Pro, there is documentation at the link on the left-hand side that details that.
If you have a more specific question, feel free to comment. :)