AI-assisted Antom payment integration quick start
This guide helps merchants and developers integrate Antom payments for the first time with an AI assistant. Use natural-language prompts to describe your business needs and guide the integration. The assistant can help you choose a payment solution, write integration code, complete sandbox tests, and troubleshoot issues. You do not need prior knowledge of Antom product or API names. Follow these steps to set up the tools, confirm a solution, and proceed with integration.
Step 1: Set up tools
Install and configure the Antom integration tools for your AI assistant. Open the assistant in your project directory and send this prompt:
Set up Antom for my AI assistant. Fetch https://docs.antom.com/ac/ref/agent-setup.md and follow the setup guide.
The assistant follows the setup guide to help you install and configure the tools. If needed, restart the assistant or start a new session as instructed, and confirm that the configuration has taken effect.
Step 2: Describe your business and confirm the integration solution
Choose the scenario that matches your situation to plan an integration with the assistant:
Use antom-integration to recommend an integration solution based on the business information below. Explain your recommendation, the complete payment flow, and what other information you need from me. Confirm the solution with me before starting implementation.
Question 1: What is your business?
Examples: E-commerce, membership subscriptions, top-ups, or usage-based billing.
Answer:
Question 2: How do users pay?
Examples: Pay for each order. Save a payment method for future purchases. Authorize once to allow subsequent automatic charges.
Answer:
Question 3: If subsequent charges are needed, who decides when to charge and how much?
Examples: My system decides and initiates the charges. I want Antom to manage charges based on subscription plans and billing rules. Enter "Not applicable" if subsequent charges are not needed.
Answer:
Question 4: Which markets do you serve, and which currencies and payment methods do you use?
Examples: Singapore, SGD, and cards. Enter "Please recommend an option" for anything undecided.
Answer:
Question 5: What payment page experience do you want?
Examples: Redirect to a hosted checkout page. Embed the page in my website. Design my own page. Please recommend an option.
Answer:
Question 6: What is the current state of your project?
Examples: Website or application, frontend and backend languages or frameworks, and whether you have an existing project or payment code.
Answer:
I want to integrate Antom into my product, but I have not decided how to collect payments. First, learn about my business and help me choose a suitable integration solution.
Use antom-integration to help me integrate payments.
I have an e-commerce website for users in Singapore. Orders are in SGD, and I want to accept card payments. Users pay for each order. I do not need automatic renewals.
The backend uses Java, and the frontend uses React. The project already supports orders. I want to complete the integration as soon as possible, and I can accept redirects to a checkout page hosted by Antom.
First, recommend a suitable Antom integration solution and explain the payment flow and integration requirements.
I accept this integration solution. Analyze how to integrate it into my current project. Explain the recommended scope of changes, implementation steps, and information you need me to provide or confirm. After we confirm these together, implement and verify the integration step by step.
I want users to complete payments without leaving my website. Explain the suitable integration options and the requirements for each.
Step 3: Prepare the sandbox and continue integration
Choose a path based on whether you have an Antom account. While you prepare your account and configuration, the assistant can create the code skeleton and run local tests.
I already have an Antom account. Guide me through obtaining the sandbox configuration and configuring my local server. Reuse the project's existing configuration if it is usable. Then help me complete a sandbox payment and verify the payment result and order status update.
I do not have an Antom account. Help me create an anonymous sandbox and guide me through integration and sandbox testing.
- Before calling sandbox APIs, configure the gateway, Client ID, merchant private key, and Antom public key for the same sandbox environment.
- Store the private key in server-side configuration. Do not paste it into chat or hardcode it in source code.
Step 4: Troubleshoot integration issues
Situation | Prompt |
|---|---|
| You do not know how to run the project | "The code has been generated. Guide me through starting the project and explain how to complete a sandbox payment." |
| The page shows an error after you click Pay | "An error occurred after I clicked Pay. The screenshot is below. Help me identify the cause." |
| You want to understand payment parameter requirements | "Is clientIp always required for card payments? Explain based on my current integration solution." |
| You do not know how to test notifications | "Use Antom CLI to help me test notifications locally and check whether my project handles them correctly." |
Further troubleshooting using integration diagnosis
If the issue remains unresolved after your checks, use Antom CLI to connect to a remote AI assistant for troubleshooting. You might need to log in to the portal to authorize access.
The issue remains unresolved. Use the integration diagnosis capabilities of Antom CLI to help me continue troubleshooting.
For the complete procedure, see Diagnose with Antom CLI.
If the payment result is unknown, check the original payment status before making another payment to test the resolution.
Step 5: Check production preparations
After sandbox tests pass, ask:
This solution has completed sandbox testing. Review my integration and identify what remains to be done before going live. List the items that have been verified and those that have not.
The assistant can help you check production configuration, payment method activation, asynchronous notification handling, and business logic. Complete the corresponding production preparations and verification before going live.