yomalilabs/cartgateway-merchant

Merchant API for CartGateway.

v0.0.3 2022-11-15 14:04 UTC

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)

Merchant Documentation

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)