Author Topic: API question  (Read 787 times)

0 Members and 1 Guest are viewing this topic.

Offline kemeris

  • 1
  • 0
  • New Member
  • *
API question
« on: March 06, 2016, 09:27:05 AM »
Hi, we are interested in hostbill to integrate it to our existing system. After looking at your API (, we cant find method for payment process. Can hostbill submit payment to the gateway, records the transaction, and sends out any necessary emails via API?

Bets regards

Offline hbillclient

  • 107
  • 4
  • Active Participant
  • ****
Re: API question
« Reply #1 on: March 07, 2016, 03:44:15 AM »

Yes, you can do what you are looking to do using the API.

1. Create a new order with the option to generate invoice for the order using API:addOrder method.
2. Generate a page to list the invoice along with payment options to the client.
3. Redirect the client to payment page which would connect to your payment gateway.
4. Your gateway then processes the payment and redirects/sends the response back.
5. Receive the response and use API:addInvoicePayment method to capture a successfull payment.

You might as well have to do other tasks depending on what these methods actually do. Keep in mind it is a lot more work to accomplish everything using the API.

Hope this helps.