Skip to content
This repository has been archived by the owner on Apr 16, 2018. It is now read-only.

Commit

Permalink
added getPaymentDetails call
Browse files Browse the repository at this point in the history
  • Loading branch information
kaareal committed May 14, 2013
1 parent 8c32464 commit 99e7e8c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/paypal.js
Expand Up @@ -59,8 +59,14 @@ PayPal.prototype.pay = function(options, callback) {
returnUrl : returnUrl }, callback);
}

PayPal.prototype.getDetails = function(id) {

PayPal.prototype.getPaymentDetails = function(paykey, callback) {
var options = {};
if (typeof(paykey) == 'string') {
options.paykey = paykey;
} else {
options = paykey;
}
this._request(this.options.sandboxUrl + 'PaymentDetails', options, callback);
}

PayPal.prototype.refund = function(id){
Expand Down

0 comments on commit 99e7e8c

Please sign in to comment.