forked from andreneto7/java-sample-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmultipushfundsPOST.java
More file actions
85 lines (83 loc) · 2.92 KB
/
Copy pathmultipushfundsPOST.java
File metadata and controls
85 lines (83 loc) · 2.92 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import java.util.*;
import java.io.IOException;
import com.visa.developer.sample.fundstransfer.*;
import com.visa.developer.sample.fundstransfer.api.*;
public class multipushfundsPOST {
public static int main(String[] args) throws IOException, ApiException {
HashMap<String,String> auth = new Auth().getAuthCreds();
FundstransferApi api = new FundstransferApi(auth);
String payload = "{"
+" \"request\": ["
+" {"
+" \"transactionIdentifier\": \"234234234234234\","
+" \"transactionCurrencyCode\": \"USD\","
+" \"systemsTraceAuditNumber\": \"101011\","
+" \"sourceOfFundsCode\": \"01\","
+" \"senderStateCode\": \"CA\","
+" \"senderReference\": \"\","
+" \"senderName\": \"Mr Name\","
+" \"senderCountryCode\": \"USA\","
+" \"senderCity\": \"My City\","
+" \"senderAddress\": \"My Address\","
+" \"senderAccountNumber\": \"4005520000011126\","
+" \"retrievalReferenceNumber\": \"401010101011\","
+" \"recipientPrimaryAccountNumber\": \"4957030420210454\","
+" \"recipientName\": \"Akhila\","
+" \"localTransactionDateTime\": \"2017-10-13T08:18:50\","
+" \"feeProgramIndicator\": \"123\","
+" \"cardAcceptor\": {"
+" \"terminalId\": \"1234\","
+" \"name\": \"Mr Smith\","
+" \"idCode\": \"5678\","
+" \"address\": {"
+" \"zipCode\": \"94454\","
+" \"state\": \"CA\","
+" \"county\": \"00\","
+" \"country\": \"USA\""
+" }"
+" },"
+" \"amount\": \"100.00\""
+" },"
+" {"
+" \"transactionIdentifier\": \"234234234234234\","
+" \"transactionCurrencyCode\": \"USD\","
+" \"systemsTraceAuditNumber\": \"101012\","
+" \"sourceOfFundsCode\": \"01\","
+" \"senderStateCode\": \"CA\","
+" \"senderReference\": \"\","
+" \"senderName\": \"Mr Name\","
+" \"senderCountryCode\": \"USA\","
+" \"senderCity\": \"My City\","
+" \"senderAddress\": \"My Address\","
+" \"senderAccountNumber\": \"4840920103511221\","
+" \"retrievalReferenceNumber\": \"401010101012\","
+" \"recipientPrimaryAccountNumber\": \"4957030420210454\","
+" \"recipientName\": \"Akhila\","
+" \"localTransactionDateTime\": \"2016-01-06T21:32:52\","
+" \"feeProgramIndicator\": \"123\","
+" \"cardAcceptor\": {"
+" \"terminalId\": \"1234\","
+" \"name\": \"Mr Smith\","
+" \"idCode\": \"5678\","
+" \"address\": {"
+" \"zipCode\": \"94454\","
+" \"state\": \"CA\","
+" \"county\": \"00\","
+" \"country\": \"USA\""
+" }"
+" },"
+" \"amount\": \"100.00\""
+" }"
+" ],"
+" \"merchantCategoryCode\": \"6012\","
+" \"localTransactionDateTime\": \"2017-10-13T08:18:50\","
+" \"businessApplicationId\": \"AA\","
+" \"acquiringBin\": \"408999\","
+" \"acquirerCountryCode\": \"840\""
+"}";
String xClientTransactionId = "21042016";
String response = api.multipushfunds(xClientTransactionId, payload);
System.out.print(response);
return 0;
}
}