Skip to content

Commit 7fe4de1

Browse files
author
Antonio Buedo
authored
#v8.0.2201.2-rc - POS facade removed (#83)
1 parent f55e685 commit 7fe4de1

File tree

5 files changed

+8
-16
lines changed

5 files changed

+8
-16
lines changed

GUIDE.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ The environment file can be either generated by the BitPay.Net Setup utility or
6262
"PrivateKeyPath": "",
6363
"PrivateKey": "",
6464
"ApiTokens": {
65-
"pos": "",
6665
"merchant": "",
6766
"payout": ""
6867
}
@@ -71,7 +70,6 @@ The environment file can be either generated by the BitPay.Net Setup utility or
7170
"PrivateKeyPath": "",
7271
"PrivateKey": "",
7372
"ApiTokens": {
74-
"pos": "",
7573
"merchant": "",
7674
"payout": ""
7775
}
@@ -106,7 +104,6 @@ Client bitpay = new Client(
106104
Env.Test,
107105
"[FULL_PATH_TO_THE_PRIVATE_KEY_|OR|_PRIVATE_KEY_AS-PLAIN_TEXT]",
108106
new Env.Tokens(){{
109-
pos = "AvJdGrEqTW9HVsJit9zabAnrJabqaQDhWHRacHYgfgxK";
110107
merchant = "2smKkjA1ACPKWUGN7wUEEqdWi3rhXYhDX6AKgG4njKvj";
111108
payout = "9pJ7fzW1GGeuDQfj32aNATCDnyY6YAacVMcDrs7HHUNo";
112109
}},
@@ -126,4 +123,4 @@ The pairing code is then entered into the BitPay merchant dashboard for the desi
126123
## Copyright
127124
Copyright (c) 2019 BitPay
128125

129-
See also the tests project for more examples of API calls.
126+
See also the tests project for more examples of API calls.

src/main/java/com/bitpay/sdk/Env.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public class Env {
1111
public static final String BitpayApiFrameVersion = "1.0.0";
1212

1313
public static class Tokens {
14-
public String pos;
1514
public String merchant;
1615
public String payout;
1716
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.bitpay.sdk.model;
22

33
public class Facade {
4-
public static final String PointOfSale = "pos";
54
public static final String Merchant = "merchant";
65
public static final String Payout = "payout";
76
}

src/test/java/test/BitPayTestMerchant.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void setUp() throws BitPayException, IOException, URISyntaxException {
6262
Env.Test,
6363
"bitpay_private_test.key",
6464
new Env.Tokens() {{
65-
merchant = "Ffm2qBvfF5B75ENThRpRDC7WQLPosfbf24qAccriRCYQ";
65+
merchant = "";
6666
}},
6767
null,
6868
null
@@ -71,8 +71,7 @@ public void setUp() throws BitPayException, IOException, URISyntaxException {
7171
// Env.Prod,
7272
// "bitpay_private_prod.key",
7373
// new Env.Tokens() {{
74-
// pos = "";
75-
// merchant = "8RLcGKTvdAXKuyivTe693RHpwdMBNuxGFUWCyvsPvYas";
74+
// merchant = "";
7675
// }},
7776
// null,
7877
// null
@@ -284,7 +283,7 @@ public void testShouldCreateInvoiceWithAdditionalParams() {
284283
assertEquals(100.0, invoice.getPrice(), EPSILON);
285284
assertEquals("ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", invoice.getPosData());
286285
assertEquals("Satoshi", invoice.getBuyer().getName());
287-
assertEquals("satoshi@buyeremaildomain.com", invoice.getBuyer().getEmail());
286+
assertEquals("sandbox@bitpay.com", invoice.getBuyer().getEmail());
288287
assertEquals(true, invoice.getFullNotifications());
289288
assertEquals("[email protected]", invoice.getNotificationEmail());
290289
}

src/test/java/test/BitPayTestPayouts.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ public static void setUpOneTime() throws InterruptedException, IOException, BitP
3636
Env.Test,
3737
"bitpay_private_test.key",
3838
new Env.Tokens() {{
39-
pos = "AvJdGrEqTW9HVsJit9zabAnrJabqaQDhWHRacHYgfgxK";
40-
merchant = "2smKkjA1ACPKWUGN7wUEEqdWi3rhXYhDX6AKgG4njKvj";
41-
payout = "9pJ7fzW1GGeuDQfj32aNATCDnyY6YAacVMcDrs7HHUNo";
39+
merchant = "";
40+
payout = "";
4241
}},
4342
null,
4443
null
@@ -53,9 +52,8 @@ public void setUp() throws BitPayException, IOException, URISyntaxException {
5352
Env.Test,
5453
"bitpay_private_test.key",
5554
new Env.Tokens() {{
56-
pos = "AvJdGrEqTW9HVsJit9zabAnrJabqaQDhWHRacHYgfgxK";
57-
merchant = "2smKkjA1ACPKWUGN7wUEEqdWi3rhXYhDX6AKgG4njKvj";
58-
payout = "9pJ7fzW1GGeuDQfj32aNATCDnyY6YAacVMcDrs7HHUNo";
55+
merchant = "";
56+
payout = "";
5957
}},
6058
null,
6159
null

0 commit comments

Comments
 (0)