Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 8951efacfa079c7d4835d81abf20d50c5915588d 1 parent fafbd41
@daraosn daraosn authored
Showing with 4 additions and 2 deletions.
  1. +3 −1 lib/paypal-express.js
  2. +1 −1  package.json
View
4 lib/paypal-express.js
@@ -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
2  package.json
@@ -21,7 +21,7 @@
"repositories": [
{
"type": "git",
- "url": "git@github.com:andzdroid/paypal-express.git",
+ "url": "git@github.com:andzdroid/paypal-express.git"
}
],
"dependencies": {
Please sign in to comment.
Something went wrong with that request. Please try again.