1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "spec": {
9 "project": {
10 "name": "Example Shop card acceptance",
11 "version": "0.1",
12 },
13 "merchant": {
14 "legalName": "Example Shop Ltd",
15 "tradingName": "Example Shop",
16 "country": "GB",
17 "companyNumber": "00000000",
18 "website": "https://shop.example.com",
19 },
20 "acquirer": {
21 "name": "Example Acquirer",
22 "psp": "Example PSP",
23 },
24 "mids": ["MID-0001 (GBP ecom)"],
25 "tids": [],
26 "mcc": "5999",
27 "schemes": [
28 "Visa",
29 "Mastercard",
30 ],
31 "paymentMethods": [
32 "Cards",
33 "Apple Pay",
34 "Google Pay",
35 ],
36 "currencies": [
37 "GBP",
38 "EUR",
39 ],
40 "settlementCurrency": "GBP",
41 "threeDS": {
42 "version": "2.2",
43 "challengePreference": "no preference",
44 "scaExemptions": [
45 "Low value",
46 "TRA",
47 ],
48 },
49 "endpoints": {
50 "test": "https://api.test.example-psp.com",
51 "live": "TBD",
52 },
53 "webhooks": {
54 "url": "https://shop.example.com/webhooks/psp",
55 "events": [
56 "payment.authorised",
57 "payment.captured",
58 "refund.succeeded",
59 "chargeback.created",
60 ],
61 "authMethod": "HMAC signature header",
62 },
63 "settlement": {
64 "schedule": "T+2 daily",
65 "bankAccountRef": "Barclays ****1234",
66 },
67 "contacts": [
68 {
69 "role": "Merchant tech lead",
70 "name": "Alex Example",
71 "email": "alex@example.com",
72 },
73 {
74 "role": "PSP integration manager",
75 "name": "Sam Example",
76 "email": "sam@example-psp.com",
77 },
78 ],
79 "timeline": {
80 "kickoff": "2026-11-02",
81 "uat": "2026-11-20",
82 "goLive": "2026-12-01",
83 },
84 "signOff": [
85 {
86 "item": "Test transactions passed (auth, capture, refund)",
87 "owner": "Merchant",
88 "done": True,
89 },
90 {
91 "item": "3DS challenge flow tested",
92 "owner": "Merchant",
93 "done": False,
94 },
95 {
96 "item": "Webhook signature verification",
97 "owner": "Merchant",
98 "done": False,
99 },
100 {
101 "item": "Go-live approval",
102 "owner": "PSP",
103 "done": False,
104 },
105 ],
106 } }
107
108
109run = client.actor("sterlingverify/integration-spec-pack").call(run_input=run_input)
110
111
112print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
113for item in client.dataset(run.default_dataset_id).iterate_items():
114 print(item)
115
116