I'm creating an e-commerce shop using Paypal Express Checkout payment. Inside IPN callback, after required checks I send a confirmation email to buyer. Inside this e-mail I would like to include Paypal transaction ID, to let user easily communicate with vendor about order, if necessary.
Is it safe to send Paypal transaction ID to buyer via email?
Yes, the payer will get a paypal email with the transaction id anyways.
Related
I'm building Invoicing system.
My client wants to send PayPal invoices without loggin to PayPal account.
I managed to make CreateInvoice() and CreateAndSendInvoice() functions to work (thanks to #Andrew Angell again!!!).
But now I need to "pay" the order. How do I act as a buyer, and pay the invoice?
There was no actually email sent to my box. I do see related record in 'notifications': "You've received an invoice XXX from YYY". But how, how do I "pay" it?
If you login to http://sandbox.paypal.com using the email address of the account that you sent the invoice to you'll see the invoice in the history just like a regular receiver would. You can pay it directly from there.
I was wondering, under PayPal chained payments if I could be a secondary receiver and not receive paypal disputes?
Let me explain more:
Say I have a buyer and a seller and me.
I want the buyer to buy directly from the seller who will have a paypal account and automatically I will receive some commission from that payment. However, I do not want to be the one the payment is made to as I do not want to be involved in disputes so I was wondering if there is a way to do this?
Sure. Have them authorize your API user ID to run calls on their behalf. Then you pass their primary email address as an argument in your calls and do your chained payment. You still get paid but they would "own" the payment. The downside is that if they lose the dispute, I bet they deduct form your account too...
I need to read the email of the buyer that has completed a transaction on my eCommerce site. Paypal does send me an email of notification, but does not contain the email of the buyer (Instead, it returns just the transaction-id - which takes me to my account.)
I was looking through the PayPal for Developer API, but I can't find an example to get this level of detail. Is this even possible to retrieve, and if so, how?
Paypal ipn returns the address. When you post to PayPal, they request an address by default. (Source)
no_shipping =2 is the prompt for requiring an address.
Here's the user story I am dealing with:
A user wants to send a personal payment to a friend to reimburse him for money.
The user adds the friends email and the amount.
We check if the recipient is a paypal user by making a call to the Adaptive Payments API PAY method.
The recipient is not a paypal user.
Then we make a preapproval for the funds transfer for the sender.
Later when we have the correct paypal address for the recipient we try and make the payment using the PERSONAL payment type and including the Preapproval token.
The API returns this error: "Personal payment type is not allowed for this payment"
Is there something I'm missing here or are preapprovals for personal payments just not possible with paypal?
Personal payments require a special permission on your account. You need to submit an application on x.com and request it.
In my DNN website, using Paypal's Checkout button, when user has click the buy button and sent to Paypal. Make a payment and then redirect back to my site.
Question:
How can I get that customer email address (from Paypal) so that i can sent a conformation email to him/her from my DNN website?
thanks.
Two ways; you can either call the GetTransactionDetails API and supply the TRANSACTIONID as a parameter. 'EMAIL' will contain the buyer's (PayPal) email address.
Or you can use PayPal IPN to get notified through POST whenever a payment / action has been made.
GetTransactionDetails API doc is at https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_GetTransactionDetails
You can also have a look at TransactionSearch for past transactions.
In case you want to use IPN, just supply NOTIFYURL in your SetExpressCheckout and DoExpressCheckoutPayment call if you're using Express Checkout, or if you're using Website Payments Standard.
Remember to send the POST back to PayPal for validation at paypal.com/cgi-bin/webscr?cmd=_notify-validate and check for a VERIFIED / INVALID response.
Some sample code and docs for IPN is available at https://www.paypal.com/ipn/