yomalilabs / cartgateway-merchant
Merchant API for CartGateway.
v0.0.3
2022-11-15 14:04 UTC
Requires
- guzzlehttp/guzzle: ^7.3
Requires (Dev)
This package is auto-updated.
Last update: 2024-06-15 17:34:31 UTC
README
Merchant Package for CartGateway API ![GitHub Action (Build and Run Tests)](https://github.com/yomalilabs/cartgateway-merchant/actions/workflows/build-and-tests.yml/badge.svg?branch=develop)
How To Install
- Download the repository to your computer. or
composer require yomalilabs/cartgateway-merchant
composer install
- Head over to the
/examples
directory to see the usage of the requests.
Hosted Checkout
You can trigger a hosted checkout request that will create the session and store the checkout. The response will include an url to redirect the client to that will be used to enter the card information. On success the client will be redirected back to the specified success url to validate the payment. The merchant will then do a validate hosted checkout request to authorize the payment was indeed a success at CartGateway.
Validate Hosted Checkout
You can trigger and validate hosted checkout request with the payment_id.
Payment API
- Charge Payment (sale)
- Authorize Payment
- Capture Authorized Payment
- Refund Payment
- Void Payment
- Lookup Payment Information
Tests
OK (100 tests, 225 assertions)