This page gives technical information on how to implement iGivePay in webshops. Payments are created through an API and the user should then be redirected according to result of the API call
The hosted payment integration is intended for integration between a vendor (typically a webshop) and iGivePay. It consists of the following steps:
API endpoint (devTEST): https://payapi.test.igive.xyz/
API documentation: https://payapi.test.igive.xyz/docs-v1/
API endpoint (production): https://pay.api.igive.no/
2023-10-30: Slight modification to URL for creating cards in test environment. See section below.
2023-04-17: Added production endpoint and removed warning about possibility of breaking API changes
2022-10-10: Implemented:
2022-09-15: Initial API implementation is published
Any API calls requires the caller to provide a Client ID and Client Secret provided by iGive.
Contact iGive to get authentication details and gift cards to use in test environment.
When Api-Key and Api-Secret has been provided, please set the x-client-id
and x-client-secret
header on your requests to provide the values when calling the APIs
There are two API endpoints provided:
API definitions are available on API docs.
Webhooks are an alternative way of notifying the integrator that something has happened with the payment. iGivePay currently supports the following events:
If webhook is configured when creating the payment, the following webhook will be pushed when the API has processed the payment:
Please note that card numbers will be masked and only contain the last 5 digits.
{
"paymentId": string,
"paidAmount": number,
"paymentTotal": number,
"reference": string,
"cards": Array:
{
cardNumber: string,
deductedAmount: number
}
}
You can create gift cards in our test environment by going to the following URL: https://data.test.igive.xyz/card-gen.
Just enter a valid API Client ID that you have received from iGive, and you should be able to create giftcards with amounts ranging from 0 - 10.000 NOK. These cards can then be used to perform payments in the test environment.