Comments (5)
Yeah, it's important.
I'll work on it in this weekend.
from paypal-express.
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.
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.
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.
Yeah, I saw that. Let me try to figure out what's going on.
from paypal-express.
Related Issues (20)
- UpdateRecurringPaymentsProfile API Operation
- Recurring Payment: Dont know where to specify IPN
- Dynamic notify_url for recurring payments
- is it still maintained? HOT 2
- How to query for "TransactionSearch" HOT 1
- Ability to send shipping address details to PayPal HOT 3
- Add Changelog HOT 1
- Checkout multiple items HOT 1
- Shipping addresses not being returned HOT 2
- Paypal Api Version HOT 3
- Instant Payment not Redirecting HOT 1
- Recurring payment does not accept currency code HOT 1
- Error when trying to change from sandbox mode. HOT 1
- Coding against non-payments
- Phone Number Ignored
- Getting 'payment_request' var to receive info about payment HOT 1
- Add "activation" in the param of recurring payment init, so it will charge 1 immediately upon complete. HOT 2
- transaction_id of recurring payment
- Example not working HOT 1
- Getting 'PayPal API Error: 'Version error'' HOT 24
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paypal-express.