Permalink
Browse files

Fixed package.json parse error & anonymous function on paypal-express.js

  • Loading branch information...
1 parent fafbd41 commit 8951efacfa079c7d4835d81abf20d50c5915588d @daraosn daraosn committed Jan 13, 2012
Showing with 4 additions and 2 deletions.
  1. +3 −1 lib/paypal-express.js
  2. +1 −1 package.json
View
@@ -26,6 +26,8 @@ PaypalExpress.prototype.beginInstantPayment = function(options, callback) {
options['METHOD'] = 'SetExpressCheckout';
options['PAYMENTREQUEST_0_ALLOWEDPAYMENTMETHOD'] = 'InstantPaymentOnly';
+ var self = this;
+
this.nvpreq.makeRequest(options, function(err, data) {
if (err) {
//Request failed
@@ -38,7 +40,7 @@ PaypalExpress.prototype.beginInstantPayment = function(options, callback) {
//Build the checkout URL
var url_object = {
protocol: 'https:',
- host: (this.sandbox) ? SANDBOX_URL : REGULAR_URL,
+ host: (self.sandbox) ? SANDBOX_URL : REGULAR_URL,
pathname: '/cgi-bin/webscr',
query: {
cmd: '_express-checkout',
View
@@ -21,7 +21,7 @@
"repositories": [
{
"type": "git",
- "url": "git@github.com:andzdroid/paypal-express.git",
+ "url": "git@github.com:andzdroid/paypal-express.git"
}
],
"dependencies": {

0 comments on commit 8951efa

Please sign in to comment.