Giter Club home page Giter Club logo

Comments (5)

nov avatar nov commented on August 20, 2024

Yeah, it's important.
I'll work on it in this weekend.

from paypal-express.

nov avatar nov commented on August 20, 2024

0.3.0 now has refund functionality.
https://github.com/nov/paypal-express/wiki/Refund

NOTE:
I also changed the way to specify "return_url" and "cancel_url".
Read this page in the wiki for more details.
https://github.com/nov/paypal-express/wiki/Instant-Payment

from paypal-express.

rromanchuk avatar rromanchuk commented on August 20, 2024

I haven't dug much into yet but i'm noticing

Ignored Parameter (Paypal::Express::Response): REFUNDTRANSACTIONID=0HK76576DA246513K
Ignored Parameter (Paypal::Express::Response): FEEREFUNDAMT=0.46
Ignored Parameter (Paypal::Express::Response): GROSSREFUNDAMT=16.00
Ignored Parameter (Paypal::Express::Response): NETREFUNDAMT=15.54
Ignored Parameter (Paypal::Express::Response): TOTALREFUNDEDAMOUNT=16.00

When issuing a .refund!(txn_id, :type => :Full), these params should be included for this call.

from paypal-express.

nov avatar nov commented on August 20, 2024

Weird..
All of them should be parsed in /lib/paypal/nvp/response.rb with this code though..

if attrs[:REFUNDTRANSACTIONID]
  @refund = Payment::Response::Refund.new(
    :transaction_id => attrs.delete(:REFUNDTRANSACTIONID),
    :amount => {
      :total => attrs.delete(:TOTALREFUNDEDAMOUNT),
      :fee => attrs.delete(:FEEREFUNDAMT),
      :gross => attrs.delete(:GROSSREFUNDAMT),
      :net => attrs.delete(:NETREFUNDAMT)
    }
  )
end

from paypal-express.

rromanchuk avatar rromanchuk commented on August 20, 2024

Yeah, I saw that. Let me try to figure out what's going on.

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.