Skip to content

yomalilabs/cartgateway-merchant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)