paypal

PayPal IPN Security

雨燕双飞 提交于 2019-12-19 06:41:31
问题 PayPal IPN sends a POST request with a variable number of fields to the notify URL, in order to confirm that the POST request is legit we need to resubmit the same request along with a additional cmd=_notify-validate field to PayPal, which then replies VERIFIED or INVALID . My question is, why do we need to resend the request to PayPal? Wouldn't something like this suffice? if (preg_match('~^(?:.+[.])?paypal[.]com$~i', gethostbyaddr($_SERVER['REMOTE_ADDR'])) > 0) { // request came from PayPal

Refund users using paypal rest API

烈酒焚心 提交于 2019-12-19 04:57:08
问题 I'm developping a web application on which I allow the users to buy a ticket for an event. I used the Paypal Rest API for sending money and purchasing the tickets.Everything is working just fine. Now I'm trying to use the refund method to refund all users related to an event when this event will be cancelled. Looking in the REST API documentation I found that there is a way to refund but when I search in the REST API package for laravel I haven't found how to refund or use the refund method.

PayPal return URL

旧时模样 提交于 2019-12-19 03:43:19
问题 Here's the code for my Paypal button: <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="my@email.com"> <input type="hidden" name="lc" value="GB"> <input type="hidden" name="button_subtype" value="products"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="rm" value="0"> <input type="hidden" name=

custom field in the IPN of paypal adaptive payment

故事扮演 提交于 2019-12-19 02:55:45
问题 I have implemented Adaptive Payment in my website. First It was Standard Payment so in that i was passing a custom parameter in the form and i was getting it in IPN. But i am unable to find how to pass this parameter in Adaptive Payment. Thanks 回答1: [Edit] As per @jackvsworld suggests in PayPal Adaptive use parameter as ipnNotificationUrl . I did this by passing into GET parameters of notify_url For e.g. http://www.mywebsite.com/index.php?param_1=value&param_2=value 回答2: I agree with @jimy to

custom field in the IPN of paypal adaptive payment

自闭症网瘾萝莉.ら 提交于 2019-12-19 02:55:10
问题 I have implemented Adaptive Payment in my website. First It was Standard Payment so in that i was passing a custom parameter in the form and i was getting it in IPN. But i am unable to find how to pass this parameter in Adaptive Payment. Thanks 回答1: [Edit] As per @jackvsworld suggests in PayPal Adaptive use parameter as ipnNotificationUrl . I did this by passing into GET parameters of notify_url For e.g. http://www.mywebsite.com/index.php?param_1=value&param_2=value 回答2: I agree with @jimy to

How do I receive callback from Paypal buy now button using PHP

☆樱花仙子☆ 提交于 2019-12-18 21:19:41
问题 I am currently testing the buy now button on a PHP website. The transaction is working but I am getting now call back from Paypal to update my database. Here is the code I have (I have changed urls) : <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="encrypted" value="........" <input type="image" src="https://www.paypalobjects.com/fr_CA/i/btn/btn_buynowCC_LG.gif" border="0" name=

How do I receive callback from Paypal buy now button using PHP

只愿长相守 提交于 2019-12-18 21:19:12
问题 I am currently testing the buy now button on a PHP website. The transaction is working but I am getting now call back from Paypal to update my database. Here is the code I have (I have changed urls) : <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="encrypted" value="........" <input type="image" src="https://www.paypalobjects.com/fr_CA/i/btn/btn_buynowCC_LG.gif" border="0" name=

Paypal IPN Listener for ASP.NET MVC [closed]

…衆ロ難τιáo~ 提交于 2019-12-18 15:09:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . There is quite a few code samples on PayPal GitHub showing how to implement IPN listener in various languages (php, VB, ...). However, there is none for the ASP.NET MVC. Has anybody successfully implemented it? Or is there, similarly to the other code samples, a preferred/oficial way of implementing it? 回答1: A

Paypal REST API: How to retrieve payment ID after user has approved the payment.

为君一笑 提交于 2019-12-18 14:45:15
问题 By following the guide on https://developer.paypal.com/webapps/developer/docs/integration/web/accept-paypal-payment/ , I have successfully created a payment and redirect the user to approve it. The created payment is something look like bellow, and I save it in user's session for further reference. { "id": "PAY-6RV70583SB702805EKEYSZ6Y", "create_time": "2013-03-01T22:34:35Z", "update_time": "2013-03-01T22:34:36Z", "state": "created", "intent": "sale", "payer": { "payment_method": "paypal" },

What is a PayPal payer id?

瘦欲@ 提交于 2019-12-18 14:02:01
问题 Instant Payment Notification script receives among other parameters the following one: payer_id = LPLWNMTBWMFAY What is the meaning of that string? 回答1: It's an external unique identifier of a particular PayPal account. Since email addresses change over time. A PayerID is static. 回答2: As others have said, payer_id can be used to identify a Paypal account. HOWEVER! -- a single Paypal account can have several payer_id s associated with it, one for each credit card or funding source used by that