paypal-nvp

What is the best way to parse Paypal NVP in PHP?

眉间皱痕 提交于 2020-01-03 07:28:24
问题 I need a function that will correctly parse NVP into PHP array. I have been using code provided by paypal but it did not work for when string length was specified next to the name. Here is what i have so far. private function parseNVP($nvpstr) { $intial=0; $nvpArray = array(); while(strlen($nvpstr)) { //postion of Key $keypos= strpos($nvpstr,'='); //position of value $valuepos = strpos($nvpstr,'&') ? strpos($nvpstr,'&'): strlen($nvpstr); /*getting the Key and Value values and storing in a

PayPal Adaptive Payments IMPLICIT Pay API

﹥>﹥吖頭↗ 提交于 2019-12-20 10:42:00
问题 I am basically trying to use the PAY call of Adaptive Payments to programmatically and immediately send funds from my own paypal account to other accounts. According to the documentation, so long as I specify the senderEmail (my own paypal address, used to set up the Adaptive Payments), this should work verbatim. However, when I make the call, I always get result "CREATED" instead of "COMPLETED". Created means the system still wants me to manually log into PayPal and approve the payments. I

Paypal UpdateRecurringPaymentsProfile returning internal error

假装没事ソ 提交于 2019-12-13 06:56:55
问题 I am trying to update a paypal recurrent payment profile with NVP. I want to change the payment amount. The request I am sending to is: METHOD=UpdateRecurringPaymentsProfile&VERSION=86&PWD=1404892100&USER=XXX@YYY.com&SIGNATURE=ASEEEEEEECCCCCCCC&ProfileID=I-8N1W7089GB47&Note=testing&Amount=105 This request is failing with the following message [TIMESTAMP] => 2014%2d11%2d04T19%3a13%3a05Z [CORRELATIONID] => 5c6026b1dedec [ACK] => Failure [L_ERRORCODE0] => 10001 [L_SHORTMESSAGE0] => Internal

What is the Recommended Practice on PayPal NVP API with Stopping and Refunding Subscriptions?

最后都变了- 提交于 2019-12-12 06:37:16
问题 So I've started this little class for doing PayPal voids, refunds, and subscription cancels. My question is, what's the recommended practice? I mean, should I attempt to void the transaction, then ignore error, then refund it, and then cancel the subscription? Note in my case, the transaction was started from a click on a PayPal Subscription button, and then it got renewed once after the 6 month period ended, and then the customer wanted a refund and to stop further subscriptions. <?php class

PayPal Classic API TransactionSearch method not supported

ぐ巨炮叔叔 提交于 2019-12-11 17:27:45
问题 I'm trying to use PayPal's Classic API to do a TransactionSearch. I keep getting an Error 81002 Unspecified Method: Method specified is not supported. Of course PayPal's documentation is "so" helpful. Anyone have any ideas on what I might be doing wrong? Here is the class I'm using... API credentials are loaded from $this->config... <?php class PayPal { private $base = array(); private $param = array(); public function __construct($registry) { $this->config = $registry->get('config'); $this-

how to enable DPRP in PayPal Sandbox account?

China☆狼群 提交于 2019-12-11 09:09:11
问题 I am calling "CreateRecurringPaymentsProfile' method to create recurring payments on CreditCard. But, I am getting 11586 "DPRP is disabled for this merchant". I have been searching through all related threads but none of them is working. I created a fresh US Business Pro account and it did not work either. Some claims that I can enable it from "Products & Services" tab but that tab does not have any "Recurring Payments" link (others does not have any related option). So, I am kinda stuck.

PayPal documentation ( REST, Classic : SOAP & NVP ) What to choose ?

孤人 提交于 2019-12-03 11:38:05
问题 I need to develop a payment solution using PayPal APIs. Actually I started the documentation phase ( on http://developers.paypal.com ) I found the REST APIs understandable, I still don't have an idea how to implement them with SpringMVC so I'm just using cURL to test them. ( any help on this ? ) On the other hand, the Classic APIs are confusing. ( for example what can we do with the Adaptive Accounts and what's the difference between Express Checkout and Adaptive Payments, etc.. ). Another

Paypal recurring payment charge immediately?

 ̄綄美尐妖づ 提交于 2019-12-03 09:50:05
问题 Im using Paypal recurring payments and Im having some issues understanding when is my first charge occurring. Im using Sandbox currently so paypal does not really send me an overview of the payment that is really happening. I would like to create a monthly subscription that will charge the user each month 6.99$ and will start immediately. my basic parameters are: BILLINGPERIOD = MONTH AMT = 6.99 PROFILESTARTDATE = date('Y-m-d') . 'T' . date('H:i:s') L_PATMENTREQUEST_0_ITEMCATEGORY0 = Digital

PayPal Adaptive Payments IMPLICIT Pay API

一世执手 提交于 2019-12-03 00:02:34
I am basically trying to use the PAY call of Adaptive Payments to programmatically and immediately send funds from my own paypal account to other accounts. According to the documentation , so long as I specify the senderEmail (my own paypal address, used to set up the Adaptive Payments), this should work verbatim. However, when I make the call, I always get result "CREATED" instead of "COMPLETED". Created means the system still wants me to manually log into PayPal and approve the payments. I really need these payments to occur automatically on the spot. Any help would be appreciated. Here is