-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpullfundsPOST.java
More file actions
41 lines (39 loc) · 1.37 KB
/
Copy pathpullfundsPOST.java
File metadata and controls
41 lines (39 loc) · 1.37 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
import java.util.*;
import java.io.IOException;
import com.visa.developer.sample.fundstransfer.*;
import com.visa.developer.sample.fundstransfer.api.*;
public class pullfundsPOST {
public static int main(String[] args) throws IOException, ApiException {
HashMap<String,String> auth = new Auth().getAuthCreds();
FundstransferApi api = new FundstransferApi(auth);
String payload = "{"
+" \"systemsTraceAuditNumber\": \"451001\","
+" \"surcharge\": \"11.99\","
+" \"senderPrimaryAccountNumber\": \"4895142232120006\","
+" \"senderCurrencyCode\": \"USD\","
+" \"senderCardExpiryDate\": \"2015-10\","
+" \"retrievalReferenceNumber\": \"330000550000\","
+" \"localTransactionDateTime\": \"2017-10-13T08:18:50\","
+" \"foreignExchangeFeeTransaction\": \"11.99\","
+" \"cavv\": \"0700100038238906000013405823891061668252\","
+" \"cardAcceptor\": {"
+" \"terminalId\": \"ABCD1234\","
+" \"name\": \"Visa Inc. USA-Foster City\","
+" \"idCode\": \"ABCD1234ABCD123\","
+" \"address\": {"
+" \"zipCode\": \"94404\","
+" \"state\": \"CA\","
+" \"county\": \"San Mateo\","
+" \"country\": \"USA\""
+" }"
+" },"
+" \"businessApplicationId\": \"AA\","
+" \"amount\": \"124.02\","
+" \"acquiringBin\": \"408999\","
+" \"acquirerCountryCode\": \"840\""
+"}";
String response = api.pullfunds(payload);
System.out.print(response);
return 0;
}
}