From ff3e1483c423708320728852d9f1df50b02d7f6c Mon Sep 17 00:00:00 2001 From: John Hsu Date: Thu, 19 Oct 2017 18:08:16 +0800 Subject: [PATCH 1/4] Modifies text by compliance --- plugins/wagecan/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/wagecan/index.html b/plugins/wagecan/index.html index d00c84c..37fb0f0 100644 --- a/plugins/wagecan/index.html +++ b/plugins/wagecan/index.html @@ -2,7 +2,7 @@ - WageCan Card Bitcoin Debit Card + WageCan Prepaid Card @@ -71,7 +71,7 @@ -

WageCan card makes it easier for you to use Bitcoin in daily life

+

Use your Bitcoin in daily life, by converting to fiat currencies on your Wagecan prepaid card

@@ -114,7 +114,7 @@
From b2ed3a64c7c07aa7897967e35eb83a817a7edef2 Mon Sep 17 00:00:00 2001 From: John Hsu Date: Wed, 20 Dec 2017 15:57:11 +0800 Subject: [PATCH 2/4] Fix form submit bug --- plugins/wagecan/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/wagecan/index.html b/plugins/wagecan/index.html index 37fb0f0..24fcee0 100644 --- a/plugins/wagecan/index.html +++ b/plugins/wagecan/index.html @@ -110,7 +110,7 @@

- +
- +

Use your Bitcoin in daily life, by converting to fiat currencies on your Wagecan prepaid card

- +
@@ -86,7 +86,7 @@
-
- +
@@ -94,7 +94,7 @@
- +
diff --git a/plugins/wagecan/js/main.js b/plugins/wagecan/js/main.js index bae4340..5817130 100644 --- a/plugins/wagecan/js/main.js +++ b/plugins/wagecan/js/main.js @@ -32,13 +32,13 @@ function initizeAirbitz() { } else { hideContentToggle() - $("#page").append( "

Sent Successfully!

" ); + $("#page").append( "

Sent Successfully!

" ); } // console.log(data); }, error: function() { hideContentToggle() - $("#page").append( "

Failed to send! Please try again later.

" ); + $("#page").append( "

Failed to send! Please try again later.

" ); } }) // end of createSpendRequest block @@ -47,7 +47,7 @@ function initizeAirbitz() { error:function () { airbitzWalletId = '' hideContentToggle() - $("#page").append( "

Unable get the selected wallet. Please try again later.

" ); + $("#page").append( "

Unable get the selected wallet. Please try again later.

" ); } }) } @@ -114,7 +114,7 @@ $(function(){ error:function () { airbitzWalletId = '' hideContentToggle() - $("#page").append( "

Unable get the selected wallet. Please try again later.

" ); + $("#page").append( "

Unable get the selected wallet. Please try again later.

" ); } }) }); @@ -282,7 +282,7 @@ function toSatoshi(val){ function displayURL() { hideContentToggle() - $("#page").append( "

Please copy and open it in your browser:
https://wagecan.com/s/AIRBITZ

" ); + $("#page").append( "

Please copy and open it in your browser:
https://wagecan.com/s/AIRBITZ

" ); } function openRefCodeURL() { From 8c68f3a5f710c4c36f84397d2fcd497f3cc28d19 Mon Sep 17 00:00:00 2001 From: John Hsu Date: Tue, 31 Jul 2018 19:00:22 +0800 Subject: [PATCH 4/4] Updates url --- plugins/wagecan/index.html | 8 ++++---- plugins/wagecan/js/main.js | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/plugins/wagecan/index.html b/plugins/wagecan/index.html index e49208a..d52974f 100644 --- a/plugins/wagecan/index.html +++ b/plugins/wagecan/index.html @@ -67,7 +67,7 @@
- +
@@ -86,7 +86,7 @@
-
- +
@@ -94,7 +94,7 @@
- +
@@ -144,7 +144,7 @@ $('#topup-form').submit(function (evt) { evt.preventDefault(); - initizeAirbitz(); + initAirbitz(); }); diff --git a/plugins/wagecan/js/main.js b/plugins/wagecan/js/main.js index 5817130..ef78810 100644 --- a/plugins/wagecan/js/main.js +++ b/plugins/wagecan/js/main.js @@ -3,7 +3,7 @@ const Msg_UnableCreateSpendRequest = 'Unable to creat the spend request. Please const Title_LoadCard = 'Load WageCan Card' const Title_Loading = 'Loading...' // Call Airbitz when user click top-up button -function initizeAirbitz() { +function initAirbitz() { var lastNumber = $('#card-number1').val() + $('#card-number2').val() || '' if(lastNumber.length !== 8) { return @@ -32,13 +32,13 @@ function initizeAirbitz() { } else { hideContentToggle() - $("#page").append( "

Sent Successfully!

" ); + $("#page").append( "

Sent Successfully!

" ); } // console.log(data); }, error: function() { hideContentToggle() - $("#page").append( "

Failed to send! Please try again later.

" ); + $("#page").append( "

Failed to send! Please try again later.

" ); } }) // end of createSpendRequest block @@ -47,7 +47,7 @@ function initizeAirbitz() { error:function () { airbitzWalletId = '' hideContentToggle() - $("#page").append( "

Unable get the selected wallet. Please try again later.

" ); + $("#page").append( "

Unable get the selected wallet. Please try again later.

" ); } }) } @@ -114,7 +114,7 @@ $(function(){ error:function () { airbitzWalletId = '' hideContentToggle() - $("#page").append( "

Unable get the selected wallet. Please try again later.

" ); + $("#page").append( "

Unable get the selected wallet. Please try again later.

" ); } }) }); @@ -134,7 +134,7 @@ function getAddressInfo(){ currency = '' address = '' $.ajax({ - url: 'https://wagecan.com/airbitz/topup/address', + url: 'https://wagecan.com/app/airbitz/topup/address', dataType: 'json', type: 'post', data: { @@ -180,7 +180,7 @@ function updateRates(){ $('#rate').text('N/A') } $.ajax({ - url: 'https://wagecan.com/airbitz/topup/rate', + url: 'https://wagecan.com/app/airbitz/topup/rate', type: 'get', dataType: 'JSON', cache: false, @@ -282,7 +282,7 @@ function toSatoshi(val){ function displayURL() { hideContentToggle() - $("#page").append( "

Please copy and open it in your browser:
https://wagecan.com/s/AIRBITZ

" ); + $("#page").append( "

Please copy and open it in your browser:
https://wagecan.com/s/AIRBITZ

" ); } function openRefCodeURL() {