· 6 years ago · Apr 01, 2020, 01:14 AM
1Signup: https://developer.cybersource.com/hello-world/sandbox.html
2
3Then create KEYS from:
4PAYMENT CONFIGURATION > KEY MANAGEMENT
5Generate Key > API Cert / Secret > Shared Secret
6
7The following details must be saved in AWS file
8as BOT needs them for credentials:
9
10Credentials:
11//CONSTANT
12authentication_type: 'http_signature',
13//Change to 'cybersource.environment.PRODUCTION' if production
14run_environment: 'cybersource.environment.SANDBOX',
15
16//Specific Credentials
17merchant_id: 'MERCHANT_ID'
18
19//SAMPLE ONLY. Replace these with your own credentials
20merchant_key_id: '315003dd-d8e3-419c-b0d0-8377833c1cf5',
21merchant_secret_key: 'i/0wTyuVfTBCDFtm4AetVo6AgGkR7Nq7mAQgQ4Am79Ho=',
22
23====
24
25The payment_gatewayID is "cybersource"
26
27====
28
29REFERENCE URL: https://developer.cybersource.com/api-reference-assets/index.html#payments
30
31To view transactions, check the DASHBOARD > LAUNCH > TRANSACTIONS
32
33SAMPLE TRANSACTION SUCCESS JSON:
34{
35 "_links": {
36 "self": {
37 "href": "/pts/v2/captures/5856560864916051703003",
38 "method": "GET"
39 },
40 "void": {
41 "href": "/pts/v2/captures/5856560864916051703003/voids",
42 "method": "POST"
43 },
44 "refund": {
45 "href": "/pts/v2/captures/5856560864916051703003/refunds",
46 "method": "POST"
47 }
48 },
49 "id": "5856560864916051703003",
50 "submitTimeUtc": "2020-03-31T12:01:26Z",
51 "status": "PENDING",
52 "reconciliationId": "72376154W88QWSIU",
53 "clientReferenceInformation": {
54 "code": "test_capture"
55 },
56 "orderInformation": {
57 "amountDetails": {
58 "totalAmount": "102.21",
59 "currency": "USD"
60 }
61 }
62}
63====
64
65IN REGARDS TO REFUNDS
66
67BOT needs:
68
69THIS ID IS THE TRANSACTION_ID
70"id": "5856560864916051703003",
71
72TRANSACTION_ID
73AMOUNT
74CURRENCY
75
76"payment": {
77 "id": "5856560864916051703003",
78 "amount_money": {
79 "amount": 100,
80 "currency": "USD"
81 },
82
83====
84
85ANY FURTHER QUESTIONS PLEASE ASK SIR LOUIE