Connect-e Samples Go provides examples of how to get started integrating with connect-e using Go and Angular.
For more information, please check Connect-e documentation.
- Standard Payment
- Checkout Payment
- Recurring Payment
- Refund Payment
- Void/Reversal Payment
You can run connect-e demo inside a Docker container. This approach doesn't require you to install any dependencies other than Docker Desktop on Windows and Mac, and Docker Compose on Linux.
Below is the list of mandatory/optional environment variables required to run connect-e demo
CONNECT_E_KEY: PUT HERE THE JWT TOKEN
API_URL: PUT HERE THE ENV API URL (Prod: https://e.connect.paymentsense.cloud/v1, Staging: https://e.test.connect.paymentsense.cloud/v1)
WEB_URL: PUT HERE THE ENV WEB URL (Prod: https://web.e.connect.paymentsense.cloud, Staging: https://web.e.test.connect.paymentsense.cloud)
MERCHANT_URL: PUT HERE THE MERCHANT URL IF USING GATEWAY CYBERSOURCE
GATEWAY_USERNAME: PUT HERE THE MERCHANT URL IF USING GATEWAY DIFFERENT FROM CYBERSOURCE
GATEWAY_PASSWORD: PUT HERE THE MERCHANT URL IF USING GATEWAY DIFFERENT FROM CYBERSOURCE
WEBHOOK_URL: PUT HERE THE WEBHOOK URL
CDN_URL: PUT HERE THE DOJO CDN URL IF USING DOJO JS (Prod: https://cdn.dojo.tech, Staging: https://cdn.dojo.tech/test)
COUNTRY_CODE: PUT HERE THE ISO COUTRY CODE (REF: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
- Create docker-compose file
version: "3.8"
services:
demo:
build: .
ports:
- "8080:8080"
environment:
CONNECT_E_KEY: ${CONNECT_E_KEY}
API_URL: ${API_URL}
WEB_URL: ${WEB_URL}
MERCHANT_URL: ${MERCHANT_URL}
GATEWAY_USERNAME: ${GATEWAY_USERNAME}
GATEWAY_PASSWORD: ${GATEWAY_PASSWORD}
WEBHOOK_URL: ${WEBHOOK_URL}
CDN_URL: ${CDN_URL}
- Build the docker image
docker-compose build
- Run the built image
docker-compose up
NOTE: You can run both commands at once with docker-compose up --build.
- Verify that the service is working.
Open your web browser and type http://localhost:8080 in your navigation bar, This opens a local instance of the connect-e standard payment page.
To stop Docker Compose, on your terminal window, press Ctrl + C.
To remove the produced images run:
docker-compose rm
For more information see the Docker Compose documentation.