Giter Club home page Giter Club logo

Comments (5)

nov avatar nov commented on July 2, 2024

Ah, I'm missing these parameters to parse, and it seems those information should not be ignored.
It should be parsed in Paypal::NVP::Response line 81-90.

Can you give me a raw sample response from PayPal?
(replacing your personal info to something like "[email protected]" etc)

Then I can make changes to parse them.

ps.
Of course, pull request is also welcome ;)

from paypal-express.

pda avatar pda commented on July 2, 2024

Here's the attributes being passed to Paypal::NVP::Response#initialize in lib/paypal/nvp/response.rb:25:

{:PROFILEID=>"I-XXXXXXXXG",
 :STATUS=>"Active",
 :AUTOBILLOUTAMT=>"NoAutoBill",
 :DESC=>"Plan Description",
 :MAXFAILEDPAYMENTS=>"0",
 :SUBSCRIBERNAME=>"John Citizen",
 :PROFILESTARTDATE=>"2011-10-26T13:00:00Z",
 :NEXTBILLINGDATE=>"2011-12-27T10:00:00Z",
 :NUMCYCLESCOMPLETED=>"2",
 :NUMCYCLESREMAINING=>"18446744073709551614",
 :OUTSTANDINGBALANCE=>"0.00",
 :FAILEDPAYMENTCOUNT=>"0",
 :LASTPAYMENTDATE=>"2011-11-27T12:18:20Z",
 :LASTPAYMENTAMT=>"17.00",
 :TRIALAMTPAID=>"0.00",
 :REGULARAMTPAID=>"34.00",
 :AGGREGATEAMT=>"34.00",
 :AGGREGATEOPTIONALAMT=>"0.00",
 :FINALPAYMENTDUEDATE=>"1970-01-01T00:00:00Z",
 :TIMESTAMP=>"2011-12-12T06:01:22Z",
 :CORRELATIONID=>"d2xxxxxxx56",
 :ACK=>"Success",
 :VERSION=>"78.0",
 :BUILD=>"2230381",
 :BILLINGPERIOD=>"Month",
 :BILLINGFREQUENCY=>"1",
 :TOTALBILLINGCYCLES=>"0",
 :CURRENCYCODE=>"USD",
 :AMT=>"17.00",
 :SHIPPINGAMT=>"0.00",
 :TAXAMT=>"0.00",
 :REGULARBILLINGPERIOD=>"Month",
 :REGULARBILLINGFREQUENCY=>"1",
 :REGULARTOTALBILLINGCYCLES=>"0",
 :REGULARCURRENCYCODE=>"USD",
 :REGULARAMT=>"17.00",
 :REGULARSHIPPINGAMT=>"0.00",
 :REGULARTAXAMT=>"0.00"}

I don't have time to look into it yet, but I'm working around it by disabling Paypal.log for the moment.

If you don't get around to it, I'll try to do so in a few weeks.

Cheers!
Paul

from paypal-express.

nov avatar nov commented on July 2, 2024

OK, now master branch has several changes for this.
Please try it when you have time :)

from paypal-express.

pda avatar pda commented on July 2, 2024

Nice - that's working much better, thanks!

from paypal-express.

nov avatar nov commented on July 2, 2024

OK, I just released paypal-express v0.4.2 with those changes.
Thanks!

from paypal-express.

Related Issues (20)

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.