openbuildings / paypal Goto Github PK
View Code? Open in Web Editor NEWPayPal SDK for ExpressCheckout and AdaptivePayments.
License: Other
PayPal SDK for ExpressCheckout and AdaptivePayments.
License: Other
in https://github.com/OpenBuildings/paypal/blob/master/src/OpenBuildings/PayPal/Payment/Adaptive/Chained.php#L46-46
$action_type is undefined, maybe it should be $fields['actionType'] instead ?
in https://github.com/OpenBuildings/paypal/blob/master/src/OpenBuildings/PayPal/Payment/Adaptive/Parallel.php#L37
$store_share is undefined
I'm trying to retrieve the payement details for a request and I'm not getting a response back. Well, the respsonse is coming back from the API but the static::parse_string() method being called from the Adaptive class appears to be validating the response as if it is the same structure as a payment execution.
Within PaymentDetails, "paymentExecStatus" does not exist in the response from PayPal. Instead, the repsonse contains "paymentInfoList.paymentInfo(0)" which contain fields such as "transactionId", "transactionStatus" and "pendingReason".
A bug report from Victor Kosh:
I use your Bundle in my symfony2 project, and I'm happy with it, but there is a little problem with recurring payments, I had this error
"PayPal API request did not succeed for https://api-3t.sandbox.paypal.com/nvp failed: Item name, amount and quantity are required if item category is provided. (10003). "
To fix it I went to OpenBuildings/Paypal/Payment/Recurring.php
to class Payment_Recurring
found function protected function _set_params()
and removed the line
'L_PAYMENTREQUEST_0_ITEMCATEGORY0' => 'Digital',
Now everything works well, but I don't like the way I fixed it.
It would be great if you have time to help me find out what is wrong.
Here is order of my actions:
\OpenBuildings\PayPal\Payment::instance('Recurring')
->config(array(
"username" => $this->paypalUsername,
"password" => $this->paypalPassowrd,
"signature" => $this->paypalSignature,
"client_id" => $this->paypalClientId,
"secret" => $this->paypalSecret,
"description"=>$this->userSubscriptionDescription,
"amount_per_month"=>1,
"charged_yearly"=>true,
"billing_period"=>"Day",
"billing_frequency"=>"1",
"amount"=>$this->userSubscriptionPrice
));
$instance = \OpenBuildings\PayPal\Payment::instance('Recurring')->order(array(
'items_price' => $itemPrice,
'shipping_price' => $shippingPrice,
'total_price' => $totalPrice,
))
->return_url($returnUrl)
->cancel_url($cancelUrl);
$instance->set_express_checkout(); // here I had that error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.