Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Remove basic-card logic #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/js/appr.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions demo/js/payment-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ function onBuyClicked(event) {
event.preventDefault();

let supportedInstruments = [{
supportedMethods: 'basic-card',
data: {
supportedNetworks: [
'visa', 'mastercard', 'amex', 'discover',
'diners', 'jcb', 'unionpay'
]
}
}, {
supportedMethods: 'https://apple.com/apple-pay',
data: {
supportedNetworks: [
Expand Down Expand Up @@ -186,9 +178,8 @@ function onBuyClicked(event) {
console.log('This is Bobpay');
console.log(response);
break;
case 'basic-card':
default:
console.log('This is basic-card');
console.log('This is ' + response.methodName);
console.log(response);
break;
}
Expand Down
11 changes: 1 addition & 10 deletions demo/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@ class priceCalc {
}

const methods = [{
supportedMethods: 'basic-card',
data: {
supportedNetworks: [
'visa', 'mastercard', 'amex', 'discover',
'diners', 'jcb', 'unionpay'
]
}
}, {
supportedMethods: 'https://apple.com/apple-pay',
data: {
supportedNetworks: [
Expand Down Expand Up @@ -194,9 +186,8 @@ function onBuyClicked(event) {
console.log('This is Bobpay');
console.log(response);
break;
case 'basic-card':
default:
console.log('This is basic-card');
console.log('This is ' + response.methodName);
console.log(response);
break;
}
Expand Down
9 changes: 1 addition & 8 deletions dist/appr.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading