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

Commit

Permalink
Removing extra data checking type, and setting invoiceNumber as string
Browse files Browse the repository at this point in the history
  • Loading branch information
zp1ke committed Oct 27, 2014
1 parent 84a6788 commit 9b798f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/paypal-mobile-js-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ function PayPalPayment(amount, currency, shortDescription, intent, details, extr
this.intent = intent;
this.details = details;

if (extra && typeof extra === "object") {
this.invoiceNumber = extra.invoiceNumber;
if (extra) {
this.invoiceNumber = String(extra.invoiceNumber);
}
}

Expand Down

0 comments on commit 9b798f8

Please sign in to comment.