Permalink
Browse files

Merge pull request #1 from daraosn/master

Fixed some minor issues.
  • Loading branch information...
2 parents fafbd41 + 3dadf51 commit 40e2cdd4c167ded5c43dd9cd270d922fbe7f1bc5 @andzdroid committed Jan 27, 2012
Showing with 9 additions and 2 deletions.
  1. +3 −1 lib/paypal-express.js
  2. +6 −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
@@ -13,6 +13,11 @@
"name": "Chun-hao Hu",
"email": "hu.chunhao@gmail.com",
"web": "http://blog.huchunhao.com"
+ },
+ {
+ "name": "Diego Araos",
+ "email": "diego@klapmedia.com",
+ "web": "http://klapmedia.com"
}
],
"bugs": {
@@ -21,7 +26,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 40e2cdd

Please sign in to comment.