forked from andreneto7/java-sample-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreversefundsPOST.java
More file actions
53 lines (51 loc) · 1.73 KB
/
Copy pathreversefundsPOST.java
File metadata and controls
53 lines (51 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import java.util.*;
import java.io.IOException;
import com.visa.developer.sample.fundstransfer.*;
import com.visa.developer.sample.fundstransfer.api.*;
public class reversefundsPOST {
public static int main(String[] args) throws IOException, ApiException {
HashMap<String,String> auth = new Auth().getAuthCreds();
FundstransferApi api = new FundstransferApi(auth);
String payload = "{"
+" \"transactionIdentifier\": \"381228649430011\","
+" \"systemsTraceAuditNumber\": \"451050\","
+" \"senderPrimaryAccountNumber\": \"4895100000055127\","
+" \"senderCurrencyCode\": \"USD\","
+" \"senderCardExpiryDate\": \"2015-10\","
+" \"retrievalReferenceNumber\": \"330000550000\","
+" \"pointOfServiceData\": {"
+" \"posConditionCode\": \"00\","
+" \"panEntryMode\": \"90\","
+" \"motoECIIndicator\": \"0\""
+" },"
+" \"pointOfServiceCapability\": {"
+" \"posTerminalType\": \"4\","
+" \"posTerminalEntryCapability\": \"2\""
+" },"
+" \"originalDataElements\": {"
+" \"transmissionDateTime\": \"2021-10-26T21:32:52\","
+" \"systemsTraceAuditNumber\": \"897825\","
+" \"approvalCode\": \"20304B\","
+" \"acquiringBin\": \"408999\""
+" },"
+" \"localTransactionDateTime\": \"2017-10-13T08:18:50\","
+" \"cardAcceptor\": {"
+" \"terminalId\": \"365539\","
+" \"name\": \"Visa Inc. USA-Foster City\","
+" \"idCode\": \"VMT200911026070\","
+" \"address\": {"
+" \"zipCode\": \"94404\","
+" \"state\": \"CA\","
+" \"county\": \"San Mateo\","
+" \"country\": \"USA\""
+" }"
+" },"
+" \"amount\": \"24.01\","
+" \"acquiringBin\": \"408999\","
+" \"acquirerCountryCode\": \"608\""
+"}";
String response = api.reversefunds(payload);
System.out.print(response);
return 0;
}
}