diff --git a/README.md b/README.md
index 1bd0be1..63fe3c0 100644
--- a/README.md
+++ b/README.md
@@ -78,7 +78,7 @@ Basic Example of the app
-
+
```
2. Replace `MyShop/www/js/index.js` with the following code:
@@ -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));
},
@@ -169,6 +170,7 @@ Basic Example of the app
//
//
//
+ //
var buyNowBtn = document.getElementById("buyNowBtn");
var buyInFutureBtn = document.getElementById("buyInFutureBtn");
var profileSharingBtn = document.getElementById("profileSharingBtn");
@@ -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,