mastercard / mastercard-api-core
This is the core or base package of the MasterCard Api, all different flavours of Api provided by MasterCard will reuse this package
Installs: 57 171
Dependents: 13
Suggesters: 0
Security: 0
Stars: 17
Watchers: 27
Forks: 13
pkg:composer/mastercard/mastercard-api-core
Requires
- guzzlehttp/guzzle: ^6.1
- monolog/monolog: ^1.19
Requires (Dev)
- phpunit/phpunit: ^5.7
README
⚠️ This project is deprecated. See Mastercard / oauth1-signer-php and Mastercard / client-encryption-php instead.
Introduction
This is the SDK Core Api for all the SDK used in MasterCard. It provides some Core functionality for all our SDKs. It provide:
- exception handling
- security (OAUTH)
- crypt utilities
- message pump
- smart map (for inline request creation using fluent style api)
Setup
This is composer project. For simplicity i've added to the project under the bin an instance of composer.
chmod +x composer.sh
chmod +x run-tests.sh
./composer install
./run-test
Run a single test
./composer exec -- phpunit --filter test500_invalidrequest_json_native