Code Monkey home page Code Monkey logo

paypal's People

Contributors

hkdobrev avatar ivank avatar marcw avatar pborreli avatar stanstst avatar tumbalev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

paypal's Issues

PaymentDetails not returning actual details.

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".

Recurring payments error

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.