Antom, leading provider of tailored payment solutions

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:

text
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:

No clear integration direction
If you are planning an integration for the first time or have not chosen an integration solution, use the questions below as a guide. You can also copy the questionnaire, fill out each answer, and send it to the assistant. For anything undecided, enter "Please recommend an option". For anything that does not apply, enter "Not applicable".
text
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:
Saving a payment method for a future purchase and authorizing automatic charges can involve different integration flows. Describe how buyers pay and which operations your system handles. The assistant can then recommend a product based on your complete business scenario.If you have not decided how to collect payments, ask:
text
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.
Clear integration direction
If you have a clear integration direction, such as adding payments to an existing e-commerce website as soon as possible, describe your requirements with this prompt:
text
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.
For this scenario, the assistant recommends Checkout Page (Hosted mode) for One-time Payments. Buyers pay for individual orders on a payment page hosted by Antom. This approach suits merchants who prioritize completing the integration as soon as possible. Confirm the specific payment methods and configuration for your target market and merchant environment.The recommendation explains the integration approach and payment flow. The required code changes and integration with your existing business logic depend on your project architecture and complexity.If the solution meets your needs, ask the assistant to analyze your project:
text
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.
To adjust the payment experience, describe the change you want:
text
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.

With existing Antom account
Log in to Antom Dashboard, switch to Test mode, and obtain the sandbox configuration from Developer > Quick start. For interface guidance, see Antom Dashboard. Ask:
text
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.
Without Antom account
Create an anonymous sandbox to start integration and testing. The anonymous sandbox is for development and testing only and does not involve real funds. Tell the assistant:
text
I do not have an Antom account. Help me create an anonymous sandbox and guide me through integration and sandbox testing.
Notes:
  • 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

Describe what you did, what you expected, and what happened. Include error messages or screenshots. You do not need to identify whether the issue originates in your frontend, backend, or Antom before asking for help.
Without disclosing private information, include the time of the issue, the environment (sandbox or production), API name, error code, and request ID. Redact requests, responses, and logs before sharing them. Do not share private keys, full card numbers, card verification values (CVVs), or other sensitive information.
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.

text
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:

text
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.