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

Commit

Permalink
Minor Updates to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay committed May 13, 2016
1 parent 427bb91 commit 33856e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Basic Example of the app
<button id="buyNowBtn"> Buy Now !</button>
<button id="buyInFutureBtn"> Pay in Future !</button>
<button id="profileSharingBtn"> Profile Sharing !</button>
<button id="cardScanBtn">Scan Credit Card !</button>
<button id="cardScanBtn">Advanced: Use card.io scan only</button>
```

2. Replace `MyShop/www/js/index.js` with the following code:
Expand Down Expand Up @@ -146,6 +146,7 @@ Basic Example of the app
onSuccesfulPayment : function(payment) {
console.log("payment success: " + JSON.stringify(payment, null, 4));
},
// This code is only used for independent card.io scanning abilities
onCardIOComplete: function(card) {
console.log("Card Scanned success: " + JSON.stringify(card, null, 4));
},
Expand All @@ -169,6 +170,7 @@ Basic Example of the app
// <button id="buyNowBtn"> Buy Now !</button>
// <button id="buyInFutureBtn"> Pay in Future !</button>
// <button id="profileSharingBtn"> ProfileSharing !</button>
// <button id="cardScanBtn">Advanced: Use card.io scan only</button>
var buyNowBtn = document.getElementById("buyNowBtn");
var buyInFutureBtn = document.getElementById("buyInFutureBtn");
var profileSharingBtn = document.getElementById("profileSharingBtn");
Expand All @@ -188,8 +190,10 @@ Basic Example of the app
// profile sharing
PayPalMobile.renderProfileSharingUI(["profile", "email", "phone", "address", "futurepayments", "paypalattributes"], app.onAuthorizationCallback, app.onUserCanceled);
};

cardScanBtn.onclick = function(e) {
// profile sharing
// card.io scanning independent of paypal payments.
// This is used for cases where you only need to scan credit cards and not use PayPal as funding option.
CardIO.scan({
"requireExpiry": true,
"requireCVV": false,
Expand Down

0 comments on commit 33856e0

Please sign in to comment.