Skip to content

Commit 09a893f

Browse files
committed
Version 2.0.1
1 parent c2b7145 commit 09a893f

10 files changed

Lines changed: 392 additions & 266 deletions

File tree

CryptAPI.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
Plugin Name: CryptAPI Payment Gateway for WooCommerce
55
Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi
66
Description: Accept cryptocurrency payments on your WooCommerce website
7-
Version: 1.0.4
7+
Version: 2.0.1
88
Requires at least: 4.0
9-
Tested up to: 5.3
9+
Tested up to: 5.8
1010
WC requires at least: 2.4
11-
WC tested up to: 3.8
11+
WC tested up to: 5.6
1212
Requires PHP: 5.5
1313
Author: cryptapi
1414
Author URI: https://cryptapi.io/

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,23 @@ All you need is to provide your crypto address.
2020

2121
The CryptAPI plugin extends WooCommerce, allowing you to get paid in crypto directly on your store, with a simple setup and no sign-ups required.
2222

23-
Currently accepted cryptocurrencies are:
23+
####Accepted cryptocurrencies & tokens include:
2424

2525
* (BTC) Bitcoin
26+
* (ETH) Ethereum
2627
* (BCH) Bitcoin Cash
2728
* (LTC) Litecoin
28-
* (ETH) Ethereum
2929
* (XMR) Monero
30-
* (IOTA) IOTA
30+
* (TRX) Tron
31+
* (BNB) Binance Coin
32+
* (USDT) USDT
33+
34+
among many others, for a full list of the supported cryptocurrencies and tokens, check [this page](https://cryptapi.io/pricing/).
3135

32-
CryptAPI will attempt to automatically convert the value you set on your store to the cryptocurrency your customer chose.
33-
Exchange rates are fetched hourly from CoinMarketCap.
36+
#### Auto-value conversion
37+
38+
CryptAPI plugin will attempt to automatically convert the value you set on your store to the cryptocurrency your customer chose.
39+
Exchange rates are fetched every 5 minutes.
3440

3541
Supported currencies for automatic exchange rates are:
3642

@@ -50,13 +56,15 @@ Supported currencies for automatic exchange rates are:
5056
If your WooCommerce's currency is none of the above, the exchange rates will default to USD.
5157
If you're using WooCommerce in a different currency not listed here and need support, please [contact us](https://cryptapi.io) via our live chat.
5258

59+
**Note:** CryptAPI will not exchange your crypto for FIAT or other crypto, just convert the value
60+
5361
#### Why choose CryptAPI?
5462

5563
CryptAPI has no setup fees, no monthly fees, no hidden costs, and you don't even need to sign-up!
5664
Simply set your crypto addresses and you're ready to go. As soon as your customers pay we forward your earnings directly to your own wallet.
5765

5866
CryptAPI has a low 1% fee on the transactions processed. No hidden costs.
59-
For more info on our fees [click here](https://cryptapi.io/get_started/#fees)
67+
For more info on our fees [click here](https://cryptapi.io/pricing/)
6068

6169
### Installation
6270

@@ -135,5 +143,10 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
135143
#### 1.0
136144
* Initial release.
137145

146+
#### 2.0
147+
* New coins
148+
* Updated codebase
149+
* New API URL
150+
138151
### Upgrade Notice
139-
* Initial release.
152+
* No breaking changes

controllers/CryptAPI.php

Lines changed: 91 additions & 86 deletions
Large diffs are not rendered by default.

define.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

33

4-
define('CRYPTAPI_PLUGIN_VERSION', '1.0.4');
4+
define('CRYPTAPI_PLUGIN_VERSION', '2.0.1');
55
define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__));
66
define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__));

readme.txt

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,40 @@
11
=== CryptAPI Payment Gateway for WooCommerce ===
22
Contributors: cryptapi
3-
Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, ethereum, monero, iota, litecoin, bitcoin cash,
3+
Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, monero, litecoin, bitcoin cash
44
Requires at least: 4.0
5-
Tested up to: 5.3
6-
Stable tag: 1.0.4
5+
Tested up to: 5.8
6+
Stable tag: 2.0.1
77
Requires PHP: 5.5
88
WC requires at least: 2.4
9-
WC tested up to: 3.8
9+
WC tested up to: 5.6
1010
License: MIT
1111

1212
Accept cryptocurrency payments on your WooCommerce website
1313

1414

1515
== Description ==
1616

17-
Accept payments in Bitcoin, Bitcoin Cash, Litecoin, Ethereum, Monero and IOTA directly to your crypto wallet, without any sign-ups or lengthy processes.
17+
Accept payments in Bitcoin, Ethereum, Bitcoin Cash, Litecoin, Monero, BNB, USDT and many more directly to your crypto wallet, without any sign-ups or lengthy processes.
1818
All you need is to provide your crypto address.
1919

2020
= Allow users to pay with crypto directly on your store =
2121

2222
The CryptAPI plugin extends WooCommerce, allowing you to get paid in crypto directly on your store, with a simple setup and no sign-ups required.
2323

24-
Currently accepted cryptocurrencies are:
24+
= Accepted cryptocurrencies & tokens include: =
2525

2626
* (BTC) Bitcoin
27+
* (ETH) Ethereum
2728
* (BCH) Bitcoin Cash
2829
* (LTC) Litecoin
29-
* (ETH) Ethereum
3030
* (XMR) Monero
31-
* (IOTA) IOTA
31+
* (TRX) Tron
32+
* (BNB) Binance Coin
33+
* (USDT) USDT
34+
35+
among many others, for a full list of the supported cryptocurrencies and tokens, check [this page](https://cryptapi.io/pricing/).
36+
37+
= Auto-value conversion =
3238

3339
CryptAPI will attempt to automatically convert the value you set on your store to the cryptocurrency your customer chose.
3440
Exchange rates are fetched hourly from CoinMarketCap.
@@ -51,6 +57,8 @@ Supported currencies for automatic exchange rates are:
5157
If your WooCommerce's currency is none of the above, the exchange rates will default to USD.
5258
If you're using WooCommerce in a different currency not listed here and need support, please [contact us](https://cryptapi.io) via our live chat.
5359

60+
**Note:** CryptAPI will not exchange your crypto for FIAT or other crypto, just convert the value
61+
5462
= Why choose CryptAPI? =
5563

5664
CryptAPI has no setup fees, no monthly fees, no hidden costs, and you don't even need to sign-up!
@@ -136,5 +144,11 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
136144
= 1.0 =
137145
* Initial release.
138146

147+
= 2.0 =
148+
* New coins
149+
* Updated codebase
150+
* New API URL
151+
152+
139153
== Upgrade Notice ==
140-
* Initial release.
154+
* No breaking changes

static/cryptapi.css

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
@keyframes lds-dual-ring {
2+
0% {
3+
-webkit-transform: rotate(0);
4+
transform: rotate(0);
5+
}
6+
100% {
7+
-webkit-transform: rotate(360deg);
8+
transform: rotate(360deg);
9+
}
10+
}
11+
12+
@-webkit-keyframes lds-dual-ring {
13+
0% {
14+
-webkit-transform: rotate(0);
15+
transform: rotate(0);
16+
}
17+
100% {
18+
-webkit-transform: rotate(360deg);
19+
transform: rotate(360deg);
20+
}
21+
}
22+
23+
.lds-dual-ring {
24+
position: relative;
25+
}
26+
27+
.lds-dual-ring div {
28+
box-sizing: border-box;
29+
}
30+
31+
.lds-dual-ring > div {
32+
position: absolute;
33+
width: 174px;
34+
height: 174px;
35+
top: 13px;
36+
left: 13px;
37+
border-radius: 50%;
38+
border: 14px solid #000;
39+
border-color: #0288d1 transparent #0288d1 transparent;
40+
-webkit-animation: lds-dual-ring 5s linear infinite;
41+
animation: lds-dual-ring 5s linear infinite;
42+
}
43+
44+
.lds-dual-ring > div:nth-child(2) {
45+
border-color: transparent;
46+
}
47+
48+
.lds-dual-ring > div:nth-child(2) div {
49+
position: absolute;
50+
width: 100%;
51+
height: 100%;
52+
-webkit-transform: rotate(45deg);
53+
transform: rotate(45deg);
54+
}
55+
56+
.lds-dual-ring > div:nth-child(2) div:before,
57+
.lds-dual-ring > div:nth-child(2) div:after {
58+
content: "";
59+
display: block;
60+
position: absolute;
61+
width: 14px;
62+
height: 14px;
63+
top: -14px;
64+
left: 66px;
65+
background: #0288d1;
66+
border-radius: 50%;
67+
box-shadow: 0 160px 0 0 #0288d1;
68+
}
69+
70+
.lds-dual-ring > div:nth-child(2) div:after {
71+
left: -14px;
72+
top: 66px;
73+
box-shadow: 160px 0 0 0 #0288d1;
74+
}
75+
76+
.lds-dual-ring {
77+
width: 100px !important;
78+
height: 100px !important;
79+
-webkit-transform: translate(-50px, -50px) scale(0.5) translate(50px, 50px);
80+
transform: translate(-50px, -50px) scale(0.5) translate(50px, 50px);
81+
}
82+
83+
.ca_loader {
84+
width: 100% !important;
85+
text-align: center !important;
86+
margin-bottom: 1rem !important;
87+
}
88+
89+
.ca_loader > div {
90+
width: 100px !important;
91+
margin: 0 auto !important;
92+
}
93+
94+
.ca_check {
95+
width: 100% !important;
96+
text-align: center !important;
97+
display: none;
98+
}
99+
100+
.ca_check img {
101+
margin: 0 auto !important;
102+
width: 100px !important;
103+
}
104+
105+
.payment_details {
106+
width: 100% !important;
107+
text-align: center !important;
108+
}
109+
110+
.payment_details .qrcode_wrapper {
111+
text-align: center !important;
112+
margin: 1em auto !important;
113+
position: relative !important;
114+
display: inline-block !important;
115+
}
116+
117+
.payment_details .qrcode_wrapper img {
118+
display: inline-block !important;
119+
border: 1px #686868 solid;
120+
border-radius: 0.4em;
121+
padding: 0.2em;
122+
background: #fff;
123+
}
124+
125+
.payment_details .qrcode_wrapper .inner-wrapper {
126+
z-index: 3 !important;
127+
position: relative !important;
128+
}
129+
130+
.payment_details .qrcode_wrapper .cryptapi_branding {
131+
font-size: 11px;
132+
font-family: "roboto", sans-serif;
133+
color: #666;
134+
position: absolute;
135+
bottom: -15px;
136+
right: 0;
137+
background: #ddd;
138+
padding: 20px 5px 2px 5px;
139+
border-radius: 0.4em;
140+
z-index: 2;
141+
border: 1px #777 solid;
142+
}
143+
144+
.payment_details .qrcode_wrapper:before {
145+
content: "clickable on mobile devices";
146+
font-size: 13px;
147+
font-family: "roboto", sans-serif;
148+
color: #666;
149+
position: absolute;
150+
bottom: -15px;
151+
left: 0;
152+
right: 0;
153+
text-align: center;
154+
background: #f6f6f6;
155+
border-radius: 0.4em;
156+
border: 1px #888 solid;
157+
padding: 18px 1px 1px 1px;
158+
z-index: 1;
159+
}
160+
161+
.payment_details .details_box {
162+
width: 100%;
163+
margin: 3em auto;
164+
text-align: center;
165+
}
166+
167+
.payment_pending {
168+
width: 100%;
169+
text-align: center;
170+
display: none;
171+
}
172+
173+
.payment_complete {
174+
width: 100%;
175+
text-align: center;
176+
display: none;
177+
}

static/jquery-qrcode-0.17.0.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)